Data reading method, device, readable storage medium and control system

CN115599358BActive Publication Date: 2026-10-09SUZHOU GAOCHUANG MOTION CONTROL TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211259157.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-14
Publication Date
2026-10-09
Estimated Expiration
2042-10-14

AI Technical Summary

Technical Problem

[0003]人工手动构建的监控内容依赖固定的通信点位关系,在部署新的工程的情况下,点位关系可能发生变化,控制系统无法根据之前构建的映射关系读取数据,需要人工更新通信点位关系,操作繁琐

Benefits of technology

[0059] The reading module is also used to control the first software to read target data from the target address set, including the operating data of the second device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115599358B_ABST
    Figure CN115599358B_ABST
Patent Text Reader

Abstract

The application provides a data reading method, device, readable storage medium and control system. The data reading method is used for a first device, the first device is in communication connection with a second device, the first device comprises first software and second software, and the data reading method comprises the following steps: acquiring, by the first software, a first description file of the second device and a second description file of a target project, the target project being a project deployed in the first device and the second device; controlling the first software to transmit the first description file and the second description file to the second software for processing to obtain a target address set, the target address in the target address set being an address of the second device; and controlling the first software to read target data of the target address in the target address set, the target data comprising running data of the second device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the technical field of automation, and specifically relates to a data reading method, apparatus, readable storage medium, and control system. Background Technology

[0002] Data access and monitoring functions are fundamental functions of a control system. In the case of a control system configuration project, the monitoring content required for the project needs to be manually constructed.

[0003] The monitoring content built manually relies on fixed communication point relationships. When a new project is deployed, the point relationships may change, and the control system cannot read data based on the previously built mapping relationship. The communication point relationships need to be updated manually, which is a cumbersome operation. Summary of the Invention

[0004] The present invention aims to solve one of the technical problems existing in the prior art or related technologies.

[0005] Therefore, the first aspect of the present invention proposes a data reading method.

[0006] A second aspect of the present invention provides a data reading device.

[0007] A third aspect of the present invention provides a data reading device.

[0008] A fourth aspect of the present invention provides a readable storage medium.

[0009] The fifth aspect of the present invention provides a control system.

[0010] In view of this, according to a first aspect of the present invention, a data reading method is proposed for a first device, the first device being communicatively connected to a second device, the first device including first software and second software, the data reading method comprising: obtaining a first description file of the second device and a second description file of a target project through the first software, the target project being a project deployed in the first device and the second device; controlling the first software to transmit the first description file and the second description file to the second software for processing to obtain a target address set, the target addresses in the target address set being addresses of the second device; controlling the first software to read target data from the target addresses in the target address set, the target data including operating data of the second device.

[0011] This invention provides a data reading method applied to a first device in a control system. The control system includes the first device and at least one second device. The first device can be a PLC (Programmable Logic Controller) or a frequency converter / servo logic controller. The second device is communicatively connected to the first device, and the first device can control the operation of the second device and read its operating data.

[0012] It should be noted that the first device includes first software and second software. The first software can be host computer software, enabling the first device to communicate with the second device through the host computer software. That is, the first device obtains the device description file of the second device and the runtime data during the operation of the second device through the host computer software. The second software can be compiler software, which can convert source code into executable code.

[0013] Once the control system is built, the first device can obtain the first description file of the second device connected to it through the first software. The first description file is the device description file of the second device, which includes, but is not limited to, the I / O point information of the controller in the device, the configuration information of the expansion board, the process items supported by the device, and the bus slave devices connected to the device. When a target project is deployed to the control system, the control system needs to configure the addresses required for the target project to run, so that the first device can monitor the process of the target project running on the second device.

[0014] The first device obtains a second description file of the target project deployed in both the first and second devices through first software. This second description file includes the target project's programming code and network configuration information. The control system can determine the addresses it needs to call during the operation of the target project based on the programming code and network configuration information.

[0015] After the first device obtains a first description file and a second description file through the first software, it transmits these files to a second software for compilation. The second software is a compiler that compiles an application point table based on the first and second description files. This application point table includes a set of target addresses. Each target address in the target address set corresponds to an application function of the target project. During the deployment of the target project on the second device, different application functions are executed. The first device can read the target data corresponding to the target address through the first software. This target data includes the runtime data of the second device when executing the application function corresponding to that target address.

[0016] After the control system is built, the first device can obtain the first description files of all second devices connected to the first device in the domain through the host computer software (first software). These first description files are device description files. When a corresponding target project is deployed in the control system, the first device can obtain the second description file of the target project through the host computer software. The host computer software transmits the first and second description files to the compiler software (second software) for compilation. The compiler software generates a target address set based on the first and second description files. The compiler software sends the generated target address set back to the host computer software, which then reads the corresponding running data of the second device during the execution of the target project based on the target addresses in the target address set.

[0017] When deploying a new target project in a control system, the first device can obtain a second description file of the newly deployed target project through first software. The second software then generates a new set of target addresses based on the newly obtained second description file and the previously obtained first description file. When updating the second device in the control system, the first device can obtain an updated first description file through the first software. The second software then generates a new set of target addresses based on the newly obtained first description file and the previously obtained second description file.

[0018] In this invention, the first device can obtain a first description file and a second description file through the first software, and automatically generate corresponding target address information based on the first description file and the second description file through the second software. When there are updates in the hardware (second device) or software (target project) of the control system, the target address set can be automatically updated without the need for the user to manually update the target address information, which simplifies the manual operation steps and improves the accuracy of reading data based on the target address information.

[0019] In this invention, the first software and the second software in the first device can interact with each other, enabling the acquisition of the first description file and the second description file, as well as the compilation and processing of the first description file and the second description file.

[0020] In the above technical solution, controlling the first software to transmit the first description file and the second description file to the second software for processing to obtain the target address set includes: controlling the second software to process the first description file to determine the first address set corresponding to the second device; processing the second description file through the second software to determine the functional information of the function required by the target project; and controlling the second software to determine the target address set in the first address set based on the functional information.

[0021] In this technical solution, after the first software transmits the first description file and the second description file to the second software, the second software can perform compilation processing based on the first description file and the second description file to generate the corresponding target address set.

[0022] Because the first description file is related to the device parameters of the second device connected to the first device—that is, the first address corresponds one-to-one with the first functional address of the second device—all functional addresses that the second device can call can be determined based on the first description file, i.e., the first address set. This first address set represents all functional addresses that the control system can call to run different target projects. Because the second description file is associated with the operational content of the target project, the second software can determine the functional information of the functions required by the target project based on the second description file. The second software can then determine the target addresses among multiple first addresses based on this functional information, thereby obtaining multiple target address sets.

[0023] Specifically, the compiler software can determine all the function addresses that the first device can call, i.e., the first address set, based on the first description file. After determining the first address set, the compiler software can determine the function addresses that need to be called during the execution of the target project based on the second description file, and filter the target addresses in the first address set based on the first and second function addresses.

[0024] It should be noted that the first address in the first address set includes the hardware function address and software function address of the second device. The second software determines the hardware and software functions to be called by the target project according to the second description file, filters the target addresses in the first address set, and generates the target address set.

[0025] Understandably, if the second device or target project in the control system is updated, the first software can send the updated first description file and / or second description file to the second software, so that the compiler software can automatically generate a new set of target addresses.

[0026] This invention determines all functional addresses in the second device connected to the first device, i.e., the first address set, through a first description file, and determines the functional information of the functions required by the target project through a second description file. Based on the functional information, the target addresses that can be adapted to the target project in the first address set are selected, thereby obtaining the target address set. This invention enables the rapid and accurate determination of the target address set required for the operation of the control system target project without the need for manual parameters.

[0027] In any of the above technical solutions, the first software is controlled to read the target data of the target address in the target address set. After the target data includes the operating data of the second device, the software also includes: displaying the target data according to the target address corresponding to the target data.

[0028] In this technical solution, the first device reads the target data corresponding to the target address through the first software, and then displays the target data according to the target address corresponding to the target data.

[0029] The second data is the operational data of the second device connected to the first device during the execution of the target project. After the first device reads the operational data through the first software, in order to improve the readability of the operational data for the user, the target data is categorized and displayed according to the target address corresponding to the target data, so that target data corresponding to the same target address are displayed in the same display area.

[0030] After the first device reads the target data from the second device using the first software, this invention determines the display area where the target data is located based on the target address corresponding to the target data. When the amount of target data is large, it can classify and display the target data, improving the readability of the displayed target data.

[0031] In any of the above technical solutions, displaying target data according to the target address corresponding to the target data includes: determining the data category of the target data according to the target address corresponding to the target data; determining the display template corresponding to the target data according to the data category; and displaying the target data according to the display template.

[0032] In this technical solution, when the first device reads the target data through the target address, the data category of the target data is determined according to the target address corresponding to the target data. Different data categories correspond to different display templates.

[0033] After determining the display template corresponding to the target data, the target data is displayed according to the corresponding display template.

[0034] Specifically, when there are multiple target data, the target data is classified according to the identification information of the corresponding target address, thereby determining different display templates for different target data. Different target data are then displayed using different display templates, making the displayed target data more visual.

[0035] This invention determines the corresponding display templates for multiple target data by using the target addresses corresponding to multiple target data, and displays the multiple target data through the display templates, thereby achieving the effect of visually generating and displaying the read target data.

[0036] In any of the above technical solutions, the number of target data is N, the number of display templates is M, N≤M, and N and M are both positive integers; displaying the target data according to the display templates includes: configuring the N target data into the M display templates according to the corresponding relationship, and displaying the M display templates according to a preset arrangement.

[0037] In this technical solution, when multiple target data are received, the different data categories corresponding to the multiple target data can be determined, and each data category corresponds to one or more target data. Different data categories correspond to different display templates. By configuring target data of the same data category into the display template corresponding to that data category, the target data is obtained.

[0038] It should be noted that when there are multiple target data entries, these multiple target data entries can be classified into multiple data categories. The number of target data entries is less than or equal to the number of data categories, and the number of data categories is the same as the number of display templates.

[0039] When multiple target categories of target data need to be displayed on the same screen, the display templates corresponding to the multiple target categories are displayed on the display screen in a preset arrangement, and the corresponding target data is configured into the corresponding display template.

[0040] This invention classifies multiple target data and finds different display templates based on the different categories of target data. By configuring the corresponding target data into the display templates for display, the first device can display the target data more flexibly and vividly, thereby improving the readability of the displayed target data.

[0041] In any of the above technical solutions, the data category includes one or a combination of the following: network configuration, process information, equipment configuration, and program programming.

[0042] In this technical solution, the target data categories include, but are not limited to, equipment configuration, process information, network configuration, and / or program programming. Network configuration target data reflects the network topology information of the target project; process information target data reflects the process information implemented during the operation of the target project; program programming target data reflects the programming information of the target project; and equipment configuration target data reflects the equipment information executing the target project.

[0043] This invention improves the display effect of target data in the control system and enhances the readability of the display page by classifying different target data into different data types and setting corresponding preset templates for target data of different data types. In the event of abnormalities in target data of different data categories, the display page of the control system can be intuitively reflected.

[0044] In any of the above technical solutions, before obtaining the first description file of the second device and the second description file of the target project through the first software, the method further includes:

[0045] The first control software establishes a communication connection with the second device according to a preset transmission protocol.

[0046] In this technical solution, before the first device reads the target data, it needs to establish a communication connection with multiple second devices. Since the multiple second devices support different communication protocols, a preset communication protocol is set to unify the communication protocols of different second devices, thereby improving the reading speed of the target data.

[0047] In any of the above technical solutions, the first description file includes one or a combination of the following: device information of the second device, attributes of the second device, and extensions supported by the second device.

[0048] In this technical solution, the first description file is the device description file of the second device, which includes the device information of the second device, the attributes of the second device, and the extensions supported by the second device.

[0049] The equipment information of the second device includes at least one of the following: the equipment type of the second device and the equipment name of the second device.

[0050] The attributes of the second device include: the digital quantity of the second device, the analog quantity of the second device, the speed loop of the second device, and the position loop of the second device.

[0051] The extensions supported by the second device refer to the functions that the second device can expand, including hardware functions and software functions. In this invention, the first description file includes at least one of the following: device information of the second device, attributes of the second device, and extensions supported by the second device, ensuring that the control system can accurately obtain the first address corresponding to all communication ports of multiple second devices based on the first description file.

[0052] In any of the above technical solutions, the second description document includes one or a combination of the following: network configuration information of the target project and application content of the target project.

[0053] In this technical solution, the second description file is an engineering description file for the target project configured in the control system. The engineering description file includes the network configuration information and / or application content of the target project. The control system can determine the functions required by the target project and the corresponding network topology based on the second description file.

[0054] Specifically, the application content of the target project is the content determined by the programming code of the target project, and the network configuration information of the target project can reflect the network configuration of the target project, that is, the network topology corresponding to the second device required by the target project.

[0055] In this technical solution, the second description file includes the network configuration information of the target project and / or the application content of the target project, ensuring that the control system can accurately obtain the target address to be called by the target project according to the second description file.

[0056] According to a second aspect of the present invention, a data reading device is provided for a first device, the first device being communicatively connected to a second device, the first device including first software and second software. The data reading device includes:

[0057] The acquisition module is used to acquire a first description file of the second device and a second description file of the target project through the first software. The target project is a project deployed in the first device and the second device.

[0058] The transmission module is used to control the first software to transmit the first description file and the second description file to the second software for processing to obtain a target address set, wherein the target address in the target address set is the address of the second device;

[0059] The reading module is also used to control the first software to read target data from the target address set, including the operating data of the second device.

[0060] In this invention, the first device can obtain a first description file and a second description file through the first software, and automatically generate corresponding target address information based on the first description file and the second description file through the second software. When there are updates in the hardware (second device) or software (target project) of the control system, the target address set can be automatically updated without the need for the user to manually update the target address information, which simplifies the manual operation steps and improves the accuracy of reading data based on the target address information.

[0061] In this invention, the first software and the second software in the first device can interact with each other, enabling the acquisition of the first description file and the second description file, as well as the compilation and processing of the first description file and the second description file.

[0062] According to a third aspect of the present invention, a data reading apparatus is provided, comprising: a memory for storing programs or instructions; and a processor for executing programs or instructions to implement the data reading method as described in the first aspect above, thereby having all the beneficial effects of the data reading method described in the first aspect above.

[0063] According to a fourth aspect of the present invention, a readable storage medium is provided on which a program or instructions are stored, which, when executed by a processor, implement the data reading method as described in the first aspect above, and thus have all the beneficial effects of the data reading method described in the first aspect above.

[0064] According to a fifth aspect of the present invention, a control system is provided, comprising: a data reading device as described in the second and / or third aspects above; and / or a readable storage medium as described in the fourth aspect above, thereby having all the beneficial effects of the data reading device as described in the second and / or third aspects above, and / or the readable storage medium as described in the fourth aspect above.

[0065] In any of the above technical solutions, the first device further includes a display device for displaying the operating data of the multiple second devices.

[0066] Additional aspects and advantages of the invention will become apparent in the following description or may be learned by practice of the invention. Attached Figure Description

[0067] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:

[0068] Figure 1 One of the flowcharts of the data reading method in the first embodiment of the present invention is shown;

[0069] Figure 2 One of the structural block diagrams of the control system in the first embodiment of the present invention is shown;

[0070] Figure 3 A second schematic flowchart of the data reading method in the first embodiment of the present invention is shown;

[0071] Figure 4 A structural block diagram of the compiler software in the first embodiment of the present invention is shown;

[0072] Figure 5 One of the flowcharts of the data reading method in the first embodiment of the present invention is shown;

[0073] Figure 6 A diagram showing the correspondence between target addresses and identification information in the first embodiment of the present invention is illustrated.

[0074] Figure 7 A second structural block diagram of the control system in the first embodiment of the present invention is shown;

[0075] Figure 8 A structural block diagram of the host computer software in the first embodiment of the present invention is shown;

[0076] Figure 9 A diagram showing the correspondence between data categories and preset templates in the first embodiment of the present invention is provided.

[0077] Figure 10 The third block diagram of the control system in the first embodiment of the present invention is shown;

[0078] Figure 11 A structural block diagram of a data reading device according to a second embodiment of the present invention is shown;

[0079] Figure 12 A structural block diagram of the data reading device according to a third embodiment of the present invention is shown;

[0080] Figure 13 A structural block diagram of the control system according to the fifth embodiment of the present invention is shown. Detailed Implementation

[0081] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments of the present invention and the features thereof can be combined with each other.

[0082] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.

[0083] The following reference Figures 1 to 13 This invention describes a data reading method, a data reading device, a readable storage medium, and a control system according to some embodiments of the present invention.

[0084] like Figure 1 As shown, in the first embodiment of the present invention, a data reading method is provided for a first device, the first device being communicatively connected to a second device, the first device including first software and second software, and the data reading method including:

[0085] Step 102: Obtain the first description file of the second device and the second description file of the target project through the first software;

[0086] The target project is the project deployed in the first and second equipment.

[0087] Step 104: Control the first software to transmit the first description file and the second description file to the second software for processing to obtain the target address set;

[0088] The target address in the target address set is the address of the second device.

[0089] Step 106: Control the first software to read the target data of the target address in the target address set. The target data includes the operating data of the second device.

[0090] This embodiment provides a data reading method applied to a first device in a control system. The control system includes the first device and at least one second device. The first device can be a PLC (Programmable Logic Controller) or a frequency converter / servo logic controller. The second device is communicatively connected to the first device, and the first device can control the operation of the second device and read its operating data.

[0091] It should be noted that the first device includes first software and second software. The first software can be host computer software, through which the first device can communicate and connect with the second device. That is, the first device obtains the device description file of the second device and the running data during the operation of the second device through the host computer software. The second software can be compiler software, which can convert source code into executable code.

[0092] Once the control system is built, the first device can obtain the first description file of the second device connected to it through the first software. The first description file is the device description file of the second device, which includes, but is not limited to, the I / O point information of the controller in the device, the configuration information of the expansion board, the process items supported by the device, and the bus slave devices connected to the device. When a target project is deployed to the control system, the control system needs to configure the addresses required for the target project to run, so that the first device can monitor the process of the target project running on the second device.

[0093] The first device obtains a second description file of the target project deployed in both the first and second devices through first software. This second description file includes the target project's programming code and network configuration information. The control system can determine the addresses it needs to call during the operation of the target project based on the programming code and network configuration information.

[0094] After the first device obtains a first description file and a second description file through the first software, it transmits these files to a second software for compilation. The second software is a compiler that compiles an application point table based on the first and second description files. This application point table includes a set of target addresses. Each target address in the target address set corresponds to an application function of the target project. During the deployment of the target project on the second device, different application functions are executed. The first device can read the target data corresponding to the target address through the first software. This target data includes the runtime data of the second device when executing the application function corresponding to that target address.

[0095] like Figure 2 As shown, specifically, the control system 200 includes host computer software 202 and compiler software 204. The host computer software 202 can obtain a first description file and a second description file from the first device 206, and transmit the first description file and the second description file to the compiler software 204. The compiler software 204 can automatically generate an application point table, which includes a set of target addresses and relevant information for each target address in the target address set. The relevant information includes, but is not limited to, the application scenario information and network configuration information of the target address.

[0096] After the control system is built, the first device can obtain the first description files of all second devices connected to the first device in the domain through the host computer software (first software). These first description files are device description files. When a corresponding target project is deployed in the control system, the first device can obtain the second description file of the target project through the host computer software. The host computer software transmits the first and second description files to the compiler software (second software) for compilation. The compiler software generates a target address set based on the first and second description files. The compiler software sends the generated target address set back to the host computer software, which then reads the corresponding running data of the second device during the execution of the target project based on the target addresses in the target address set.

[0097] In this embodiment, when a new target project is deployed in the control system, the first device can obtain a second description file of the newly deployed target project through the first software. The second software generates a new set of target addresses based on the newly obtained second description file and the previously obtained first description file. When the second device is updated in the control system, the first device can obtain an updated first description file through the first software. The second software generates a new set of target addresses based on the newly obtained first description file and the previously obtained second description file.

[0098] In this embodiment, the first device can obtain a first description file and a second description file through the first software, and automatically generate corresponding target address information based on the first description file and the second description file through the second software. When there are updates in the hardware (second device) or software (target project) in the control system, the target address set can be automatically updated without the need for the user to manually update the target address information, which simplifies the manual operation steps and improves the accuracy of reading data based on the target address information.

[0099] In this embodiment, the first software and the second software in the first device can interact with each other, realizing the acquisition of the first description file and the second description file, as well as the compilation and processing of the first description file and the second description file.

[0100] like Figure 3 As shown, in the above embodiment, the first software controls the transmission of the first description file and the second description file to the second software for processing to obtain a target address set, including:

[0101] Step 302: Control the second software to process the first description file and determine the first address set corresponding to the second device;

[0102] Step 304: Process the second description file using the second software to determine the functional information required by the target project.

[0103] Step 306: Control the second software to determine the target address set in the first address set based on the functional information.

[0104] In this embodiment, after the first software transmits the first description file and the second description file to the second software, the second software can perform compilation processing based on the first description file and the second description file to generate a corresponding target address set.

[0105] Because the first description file is related to the device parameters of the second device connected to the first device—that is, the first address corresponds one-to-one with the first functional address of the second device—all functional addresses that the second device can call can be determined based on the first description file, i.e., the first address set. This first address set represents all functional addresses that the control system can call to run different target projects. Because the second description file is associated with the operational content of the target project, the second software can determine the functional information of the functions required by the target project based on the second description file. The second software can then determine the target addresses among multiple first addresses based on this functional information, thereby obtaining multiple target address sets.

[0106] Specifically, the compiler software can determine all the function addresses that the first device can call, i.e., the first address set, based on the first description file. After determining the first address set, the compiler software can determine the function addresses that need to be called during the execution of the target project based on the second description file, and filter the target addresses in the first address set based on the first and second function addresses.

[0107] It should be noted that the first address in the first address set includes the hardware function address and software function address of the second device. The second software determines the hardware and software functions to be called by the target project according to the second description file, filters the target addresses in the first address set, and generates the target address set.

[0108] Understandably, if the second device or target project in the control system is updated, the first software can send the updated first description file and / or second description file to the second software, so that the compiler software can automatically generate a new set of target addresses.

[0109] like Figure 4 As shown, the second software can be compiler software 400, which includes a parser 402 and a point manager 404. After receiving the first and second description files from the host computer software, the parser 402 can determine the I / O port point information, periodic data point information, and process item point information. It then transmits these information to the point manager 404, which generates and outputs an application point table, which includes a set of target addresses.

[0110] This embodiment determines all functional addresses in the second device connected to the first device, i.e., the first address set, through the first description file, and determines the functional information of the functions required by the target project through the second description file. Based on the functional information, the target addresses that can be adapted to the target project in the first address set are selected, thereby obtaining the target address set. This realizes that the target address set required for the operation of the control system target project can be quickly and accurately determined without manual parameters.

[0111] In any of the above embodiments, the first software is controlled to read target data from the target address set. After the target data includes the operating data of the second device, the software further includes: displaying the target data according to the target address corresponding to the target data.

[0112] In this embodiment, after the first device reads the target data corresponding to the target address through the first software, it displays the target data according to the target address corresponding to the target data.

[0113] The second data is the operational data of the second device connected to the first device during the execution of the target project. After the first device reads the operational data through the first software, in order to improve the readability of the operational data for the user, the target data is categorized and displayed according to the target address corresponding to the target data, so that target data corresponding to the same target address are displayed in the same display area.

[0114] In this embodiment, after the first device reads the target data from the second device using the first software, it determines the display area where the target data is located based on the target address corresponding to the target data. When the amount of target data is large, it can classify and display the target data, improving the readability of the displayed target data.

[0115] like Figure 5 As shown, in any of the above embodiments, displaying the target data according to the target address corresponding to the target data includes:

[0116] Step 502: Determine the data category of the target data based on the target address corresponding to the target data;

[0117] Step 504: Determine the display template corresponding to the target data based on the data category;

[0118] Step 506: Display the target data according to the display template.

[0119] In this embodiment, when the first device reads the target data through the target address, the data category of the target data is determined based on the target address corresponding to the target data. Different data categories correspond to different display templates.

[0120] like Figure 6 As shown, by setting different identification information for the target addresses of different data categories, it is easier to determine the data category of the corresponding target data based on the target address. For example, the target address for reading network configuration information is set with identification information for periodic data points, the target address for reading process configuration information and equipment configuration information is set with identification information for process item points, and the target address for reading equipment configuration information and program programming information is set with identification information for device I / O points.

[0121] like Figure 7As shown, after the control system 700 reads multiple target data, it can classify the multiple target data by reading the target addresses corresponding to the multiple target data, and determine the data category of the multiple target data. The multiple target data categories include: network configuration, equipment configuration, process configuration, and program programming. Therefore, the multiple target data includes network configuration information, equipment configuration information, process configuration information, and program programming information, and the control system compiles programs for the network configuration information, equipment configuration information, process configuration information, and program programming information for subsequent debugging and monitoring by the control system.

[0122] After determining the display template corresponding to the target data, the target data is displayed according to the corresponding display template.

[0123] Specifically, when there are multiple target data, the target data is classified according to the identification information of the corresponding target address, thereby determining different display templates for different target data. Different target data are then displayed using different display templates, making the displayed target data more visual.

[0124] like Figure 8 As shown, the host computer software 800 includes a network management module 802, a process management module 804, an equipment management module 806, a point location table interpreter module 808, and a monitoring module 810. After receiving the application point location table, the point location table interpreter module 808 transmits the application point location table to the monitoring module 810. The application point location table includes a set of target addresses. Engineering description files are classified according to identification information, and different types of engineering description files are input to the network management module 802, process management module 804, and equipment management module respectively. The network management module 802 can transmit network topology information to the monitoring module 810, the process management module 804 can transmit process information to the monitoring module 810, and the equipment management module can transmit equipment location information to the monitoring module 810. The monitoring module 810 can generate network equipment monitoring pages, process monitoring pages, and equipment monitoring pages according to corresponding templates for display.

[0125] This embodiment determines the corresponding display templates for multiple target data by using the target addresses corresponding to multiple target data, and displays the multiple target data through the display templates, thereby achieving the effect of visually generating and displaying the read target data.

[0126] In any of the above embodiments, the number of target data is N, the number of display templates is M, N≤M, and N and M are both positive integers;

[0127] Display the target data according to the display template, including:

[0128] N target data are configured into M display templates according to their corresponding relationships, and the M display templates are displayed in a preset arrangement.

[0129] In this embodiment, when multiple target data are received, different data categories corresponding to the multiple target data can be determined, and each data category corresponds to one or more target data. Different data categories correspond to different display templates. By configuring target data of the same data category into the display template corresponding to that data category, the target data is obtained.

[0130] It should be noted that when there are multiple target data entries, these multiple target data entries can be classified into multiple data categories. The number of target data entries is less than or equal to the number of data categories, and the number of data categories is the same as the number of display templates.

[0131] When multiple target categories of target data need to be displayed on the same screen, the display templates corresponding to the multiple target categories are displayed on the display screen in a preset arrangement, and the corresponding target data is configured into the corresponding display template.

[0132] like Figure 9 As shown, the data categories of multiple target data are network configuration, equipment configuration and process information. The network monitoring template corresponding to the target data of the network configuration category, the equipment monitoring template corresponding to the target data of the equipment configuration category, and the process monitoring template corresponding to the target data of the process information category are found. By configuring the corresponding data into the corresponding templates, the data is displayed on the display page of the control system. Different display templates are arranged in a preset format on the display page.

[0133] This embodiment classifies multiple target data and finds different display templates based on the different categories of target data. By configuring the corresponding target data into the display templates, the first device displays the target data in a more flexible and vivid way, improving the readability of the displayed target data.

[0134] In any of the above embodiments, the data category includes one or a combination of: network configuration, process information, equipment configuration, and program programming.

[0135] In this embodiment, the target data categories include, but are not limited to, equipment configuration, process information, network configuration, and / or program programming. Network configuration target data reflects the network topology information of the target project; process information target data reflects the process information implemented during the operation of the target project; program programming target data reflects the programming information of the target project; and equipment configuration target data reflects the equipment information executing the target project.

[0136] This embodiment improves the display effect of target data by dividing different target data into different data types and setting corresponding preset templates for target data of different data types. It also improves the readability of the display page and can intuitively reflect the abnormality of target data of different data categories on the display page of the control system.

[0137] In any of the above embodiments, before obtaining the first description file of the second device and the second description file of the target project through the first software, the method further includes:

[0138] The first control software establishes a communication connection with the second device according to a preset transmission protocol.

[0139] like Figure 10 As shown, the control system 1000 includes a protocol component 1002, which is configured with a preset transmission protocol. The protocol component can communicate with device A, device B, device C, etc. through the preset transmission protocol.

[0140] In this embodiment, before the first device reads the target data, it needs to establish a communication connection with multiple second devices. Since the multiple second devices support different communication protocols, a preset communication protocol is set to unify the communication protocols of different second devices, thereby improving the reading speed of the target data.

[0141] In any of the above embodiments, the first description file includes one or a combination of the following: device information of the second device, attributes of the second device, and extensions supported by the second device.

[0142] In this embodiment, the first description file is a device description file for the second device, which includes device information of the second device, attributes of the second device, and extensions supported by the second device.

[0143] The equipment information of the second device includes at least one of the following: the equipment type of the second device and the equipment name of the second device.

[0144] The attributes of the second device include: the digital quantity of the second device, the analog quantity of the second device, the speed loop of the second device, and the position loop of the second device.

[0145] The extensions supported by the second device refer to the functions that the second device can expand, including hardware functions and software functions. In this embodiment, the first description file includes at least one of the following: device information of the second device, attributes of the second device, and extensions supported by the second device, ensuring that the control system can accurately obtain the first address corresponding to all communication ports of multiple second devices based on the first description file.

[0146] In any of the above embodiments, the second description file includes one or a combination of the following: network configuration information of the target project and application content of the target project.

[0147] In this embodiment, the second description file is a project description file for the target project configured in the control system. The project description file includes the network configuration information and / or application content of the target project. The control system can determine the functions required by the target project and the corresponding network topology based on the second description file.

[0148] Specifically, the application content of the target project is the content determined by the programming code of the target project, and the network configuration information of the target project can reflect the network configuration of the target project, that is, the network topology corresponding to the second device required by the target project.

[0149] In this embodiment, the second description file includes the network configuration information of the target project and / or the application content of the target project, ensuring that the control system can accurately obtain the target address to be called by the target project according to the second description file.

[0150] like Figure 11 As shown, in a second embodiment of the present invention, a data reading device 1100 is provided for a first device, which is communicatively connected to a second device. The first device includes first software and second software. The data reading device 1100 includes:

[0151] The acquisition module 1102 is used to acquire a first description file of the second device and a second description file of the target project through the first software. The target project is a project deployed in the first device and the second device.

[0152] The transmission module 1104 is used to control the first software to transmit the first description file and the second description file to the second software for processing to obtain a target address set, wherein the target address in the target address set is the address of the second device;

[0153] The reading module 1106 is also used to control the first software to read the target data of the target address in the target address set, and the target data includes the operating data of the second device.

[0154] In this embodiment, the first device can obtain a first description file and a second description file through the first software, and automatically generate corresponding target address information based on the first description file and the second description file through the second software. When there are updates in the hardware (second device) or software (target project) in the control system, the target address set can be automatically updated without the need for the user to manually update the target address information, which simplifies the manual operation steps and improves the accuracy of reading data based on the target address information.

[0155] In this embodiment, the first software and the second software in the first device can interact with each other, realizing the acquisition of the first description file and the second description file, as well as the compilation and processing of the first description file and the second description file.

[0156] In the above embodiments, the data reading device 1100 further includes:

[0157] The control module is used to control the second software to process the first description file and determine the first address set corresponding to the second device;

[0158] The determination module is used to process the second description file through the second software to determine the functional information of the functions required by the target project;

[0159] The control module is used to control the second software to determine the target address set in the first address set based on the functional information.

[0160] This embodiment determines all functional addresses in the second device connected to the first device, i.e., the first address set, through the first description file, and determines the functional information of the functions required by the target project through the second description file. Based on the functional information, the target addresses that can be adapted to the target project in the first address set are selected, thereby obtaining the target address set. This realizes that the target address set required for the operation of the control system target project can be quickly and accurately determined without manual parameters.

[0161] In any of the above embodiments, the data reading device 1100 further includes:

[0162] The display module is used to display the target data according to the target address corresponding to the target data.

[0163] In this embodiment, after the first device reads the target data from the second device using the first software, it determines the display area where the target data is located based on the target address corresponding to the target data. When the amount of target data is large, it can classify and display the target data, improving the readability of the displayed target data.

[0164] In any of the above embodiments, the data reading device 1100 further includes:

[0165] The determination module is used to determine the data category of the target data based on the target address corresponding to the target data;

[0166] The determination module is used to determine the display template corresponding to the target data based on the data category;

[0167] The display module is used to display target data according to the display template.

[0168] This embodiment determines the corresponding display templates for multiple target data by using the target addresses corresponding to multiple target data, and displays the multiple target data through the display templates, thereby achieving the effect of visually generating and displaying the read target data.

[0169] In any of the above embodiments, the number of target data is N, the number of display templates is M, N≤M, and N and M are both positive integers;

[0170] The display module is also used to configure N target data into M display templates according to their corresponding relationships, and the M display templates are displayed in a preset arrangement.

[0171] This embodiment classifies multiple target data and finds different display templates based on the different categories of target data. By configuring the corresponding target data into the display templates, the first device displays the target data in a more flexible and vivid way, improving the readability of the displayed target data.

[0172] In any of the above embodiments, the data category includes one or a combination of: network configuration, process information, equipment configuration, and program programming.

[0173] This embodiment improves the display effect of target data by dividing different target data into different data types and setting corresponding preset templates for target data of different data types. It also improves the readability of the display page and can intuitively reflect the abnormality of target data of different data categories on the display page of the control system.

[0174] In any of the above embodiments, the control module is further configured to control the first software to establish a communication connection with the second device according to a preset transmission protocol.

[0175] In this embodiment, before the first device reads the target data, it needs to establish a communication connection with multiple second devices. Since the multiple second devices support different communication protocols, a preset communication protocol is set to unify the communication protocols of different second devices, thereby improving the reading speed of the target data.

[0176] In any of the above embodiments, the first description file includes one or a combination of the following: device information of the second device, attributes of the second device, and extensions supported by the second device.

[0177] In this embodiment, the first description file includes at least one of the following: device information of the second device, attributes of the second device, and extensions supported by the second device, ensuring that the control system can accurately obtain the first address corresponding to all communication ports of multiple second devices based on the first description file.

[0178] In any of the above embodiments, the second description file includes one or a combination of the following: network configuration information of the target project and application content of the target project.

[0179] In this embodiment, the second description file includes the network configuration information of the target project and / or the application content of the target project, ensuring that the control system can accurately obtain the target address to be called by the target project according to the second description file.

[0180] like Figure 12 As shown, in the fourth embodiment of the present invention, a data reading device 1200 is provided, including: a memory 1202 and a processor 1204.

[0181] The memory 1202 is used to store programs or instructions;

[0182] When the processor 1204 executes a program or instruction, it implements the data reading method as described in Embodiment 1 above, and thus has all the beneficial effects of the data reading method described in Embodiment 1 above.

[0183] In a fourth embodiment of the present invention, a readable storage medium is provided, on which a program is stored. When the program is executed by a processor, it implements the data reading method as described in any of the above embodiments, and thus has all the beneficial technical effects of the data reading method described in any of the above embodiments.

[0184] Among them, readable storage media include read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0185] like Figure 13 As shown, a seventh embodiment of the present invention provides a control system 1300, including: a data reading device 1100 as in embodiment two and / or a data reading device as in embodiment three; and / or a readable storage medium 1302 as in embodiment four, thus having all the beneficial effects of the data reading device 1100 as in embodiment two and / or the data reading device as in embodiment three; and / or the readable storage medium 1302 as in embodiment four.

[0186] In any of the above embodiments, the control system further includes a first device and a plurality of second devices that are communicatively connected to the first device via a preset transmission protocol, wherein the first device is capable of controlling the plurality of second devices.

[0187] In any of the above embodiments, the first device further includes a display device for displaying operating data of a plurality of second devices.

[0188] In the claims, description, and accompanying drawings of this invention, the terms "one embodiment," "some embodiments," "specific embodiment," etc., refer to a specific feature, structure, material, or characteristic described in connection with that embodiment or example, which is included in at least one embodiment or example of the invention. In the claims, description, and accompanying drawings of this invention, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0189] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A data reading method for a first device, characterized in that, The first device is communicatively connected to the second device. The first device includes first software and second software. The data reading method includes: The first software obtains a first description file of the second device and a second description file of the target project, wherein the target project is a project deployed in the first device and the second device; The first software is controlled to transmit the first description file and the second description file to the second software for processing to obtain a target address set, wherein the target address in the target address set is the address of the second device; The first software is controlled to read target data from the target address in the target address set, the target data including the operating data of the second device; The control mechanism involves the first software transmitting the first description file and the second description file to the second software for processing to obtain a target address set, including: The second software is controlled to process the first description file to determine the first address set corresponding to the second device; The second software processes the second description file to determine the functional information required by the target project. The second software is controlled to determine the target address set in the first address set based on the functional information; When a new target project is deployed in the control system, the first device obtains a second description file of the newly deployed target project through the first software, and the second software generates a new set of target addresses based on the newly obtained second description file and the previously obtained first description file; and / or when the second device is updated in the control system, the first device obtains an updated first description file through the first software, and the second software generates a new set of target addresses based on the newly obtained first description file and the previously obtained second description file.

2. The data reading method according to claim 1, characterized in that, The control software reads target data from the target address set, and after the target data includes the operating data of the second device, it also includes: The target data is displayed based on the target address corresponding to the target data.

3. The data reading method according to claim 2, characterized in that, The step of displaying the target data according to the target address corresponding to the target data includes: The data category of the target data is determined based on the target address corresponding to the target data; Based on the data category, determine the display template corresponding to the target data; The target data is displayed according to the display template.

4. The data reading method according to claim 3, characterized in that, The number of target data is N, and the number of display templates is M, where N ≤ M, and N and M are both positive integers. The step of displaying the target data according to the display template includes: The N target data are configured into M display templates according to their correspondence, and the M display templates are displayed in a preset arrangement.

5. The data reading method according to claim 3, characterized in that, The data category includes one or a combination of: Network configuration, process information, equipment configuration, and program programming.

6. The data reading method according to any one of claims 1 to 5, characterized in that, Before obtaining the first description file of the second device and the second description file of the target project through the first software, the method further includes: The first software is controlled to establish a communication connection with the second device according to a preset transmission protocol.

7. The data reading method according to any one of claims 1 to 5, characterized in that, The first description file includes one or a combination of the following: device information of the second device, attributes of the second device, and extensions supported by the second device.

8. The data reading method according to any one of claims 1 to 5, characterized in that, The second description file includes one or a combination of the following: the network configuration of the target project and the application content of the target project.

9. A data reading device for a first device, characterized in that, The first device is communicatively connected to the second device. The first device includes first software and second software. The data reading device includes: The acquisition module is used to acquire a first description file of the second device and a second description file of the target project through the first software, wherein the target project is a project deployed in the first device and the second device; The transmission module is used to control the first software to transmit the first description file and the second description file to the second software for processing to obtain a target address set, wherein the target address in the target address set is the address of the second device; The reading module is also used to control the first software to read the target data of the target address in the target address set, wherein the target data includes the operating data of the second device; The control module is used to control the second software to process the first description file and determine the first address set corresponding to the second device; The determination module is used to process the second description file through the second software to determine the functional information required by the target project. The control module is used to control the second software to determine the target address set in the first address set based on the functional information; When a new target project is deployed in the control system, the first device obtains a second description file of the newly deployed target project through the first software, and the second software generates a new set of target addresses based on the newly obtained second description file and the previously obtained first description file; and / or when the second device is updated in the control system, the first device obtains an updated first description file through the first software, and the second software generates a new set of target addresses based on the newly obtained first description file and the previously obtained second description file.

10. A data reading device, characterized in that, include: A memory that stores programs or instructions; A processor, configured to implement the steps of the data reading method as described in any one of claims 1 to 8 when executing the program or instructions.

11. A readable storage medium having a program or instructions stored thereon, characterized in that, When the program or instructions are executed by the processor, they implement the steps of the data reading method as described in any one of claims 1 to 8.

12. A control system, characterized in that, include: The data reading device as described in claim 9 or 10; or The readable storage medium as described in claim 11.

13. The control system according to claim 12, characterized in that, Also includes: First equipment; Multiple second devices are connected to the second device via a preset communication protocol.

14. The control system according to claim 13, characterized in that, The first device also includes: A display device is used to display the operating data of the plurality of second devices.

Citation Information

Patent Citations

  • Method and device for monitoring data, storage medium and electronic device

    CN110134056A

  • Communication mapping method and device for equipment configuration, equipment and storage medium

    CN114356322A