Method and device for collecting aperiodic HART (Highway Addressable Remote Transducer) data
By establishing a slave polling table on the DP master station and concurrently collecting non-periodic HART data, the problem of low non-periodic HART data acquisition efficiency in large-scale HART instrument application sites is solved, and efficient data acquisition is achieved.
Patent Information
- Application Number
- CN202411815411.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-03-25
AI Technical Summary
When using Profibus-DP as the industrial fieldbus, the acquisition efficiency of non-periodic HART data is too low for application sites where large-scale HART instruments exist.
By pre-establishing a slave polling table on the DP master station, and after receiving the non-periodic HART data acquisition command, the target data acquisition instruction is sent to the target DP slave station, and the DP slave stations are polled in sequence based on the preset polling order to obtain the target data, so as to achieve concurrent acquisition.
It improves the acquisition efficiency of non-periodic HART data and can complete efficient acquisition of large batches of non-periodic HART data within two consecutive DP communication cycles.
Smart Images

Figure CN119696954A_ABST
Abstract
Description
Technical Field
[0001] The present specification relates to the field of electrical control technology, and more specifically, to a method and device for collecting non-periodic HART (Highway Addressable Remote Transducer, an open communication protocol for addressable remote sensor highway channels) data. Background Art
[0002] Profibus-DP is a high-speed, low-cost communication bus specifically designed for communication between device-level control systems and distributed I / O. When the traditional method uses Profibus-DP as an industrial field bus, the order of data message exchange in each communication cycle is: first perform periodic communication, and after traversing the periodic interaction tasks of all DP slaves, if there is a requirement for non-periodic data exchange, only perform non-periodic data exchange once. Based on this, if multiple DP slaves have non-periodic communication requirements within a communication cycle, they can only queue up and wait for subsequent communication cycles for non-periodic data exchange. At the same time, due to the low bandwidth of Profibus-DP, the DP master can only collect non-periodic HART data of one channel of one DP slave in each communication cycle.
[0003] Therefore, when the prior art uses Profibus-DP as the industrial field bus, there is a problem of low efficiency in collecting non-periodic HART data for application sites with large-scale HART instruments. Summary of the invention
[0004] The embodiments of this specification provide a method and device for collecting non-periodic HART data, which improve the collection efficiency of non-periodic HART data through concurrent collection.
[0005] To achieve the above technical objectives, the embodiments of this specification provide the following technical solutions:
[0006] In a first aspect, an embodiment of the present specification provides a method for collecting non-periodic HART data, which is applied to a DP master station, comprising:
[0007] In the case where a non-periodic HART data acquisition command is received in the first DP communication cycle, a target data acquisition instruction is sent to the target DP slave station based on the non-periodic HART data acquisition command, and each DP slave station is polled in turn based on a preset polling order to obtain target data corresponding to the target DP slave station;
[0008] In the case that the target data corresponding to the target DP slave station is not collected in the first DP communication cycle, each DP slave station is polled in turn based on a preset polling order in the second DP communication cycle to obtain the target data corresponding to the remaining target DP slave stations;
[0009] The first DP communication cycle and the second DP communication cycle are consecutive DP communication cycles.
[0010] In a second aspect, an embodiment of the present specification provides a computing device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for collecting non-periodic HART data when executing the computer program.
[0011] In a third aspect, an embodiment of the present specification further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned non-periodic HART data collection method is implemented.
[0012] It can be seen from the above technical solutions that the method for collecting non-periodic HART data provided in the embodiments of this specification can obtain non-periodic HART data by concurrent collection, thereby improving the collection efficiency of non-periodic HART data. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0014] Figure 1 This is a flow chart of a method for collecting non-periodic HART data according to an embodiment of this specification;
[0015] Figure 2 This is a schematic diagram of a target data acquisition process according to an embodiment of this specification;
[0016] Figure 3 This is a schematic diagram of an interactive process of a method for collecting non-periodic HART data according to an embodiment of this specification;
[0017] Figure 4 A schematic diagram of the structure of a computing device according to an embodiment of the present specification. DETAILED DESCRIPTION
[0018] Unless otherwise defined, the technical terms or scientific terms used in the embodiments of this specification shall have the common meanings understood by persons with ordinary skills in the field to which this specification belongs. The words "first", "second" and similar words used in the embodiments of this specification do not indicate any order, quantity or importance, but are only used to avoid confusion of constituent elements.
[0019] Unless the context requires otherwise, throughout the specification, "plurality" means "at least two", and "including" is interpreted as an open, inclusive meaning, that is, "including, but not limited to". In the description of the specification, the terms "one embodiment", "some embodiments", "exemplary embodiments", "examples", "specific examples" or "some examples" are intended to indicate that a particular feature, structure, material or characteristic associated with the embodiment or example is included in at least one embodiment or example of the specification. The schematic representation of the above terms does not necessarily refer to the same embodiment or example.
[0020] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0021] Application Overview
[0022] When Profibus-DP is used as an industrial field bus for data acquisition, periodic data refers to data that is repeatedly transmitted within a fixed time interval. The transmission of this data is usually real-time, such as control signals and sensor readings. In Profibus-DP, the transmission of periodic data is usually achieved through regular exchanges between the DP master and the DP slave to ensure the synchronization and real-time performance of the system. Non-periodic data refers to data that is transmitted within an unfixed time interval. The transmission of this data is usually event-driven rather than timed, and is suitable for information that is updated less frequently, such as configuration parameters, status information, diagnostic data, etc. The communication of non-periodic data is usually performed when needed, such as when the device status changes or needs to be reconfigured. Therefore, the interaction of each communication cycle in the prior art is mainly periodic data interaction. Specifically, the order of data message exchange in each communication cycle is: first, periodic communication is performed, and the DP master sends a periodic data exchange request to each DP slave in turn to obtain the periodic data of the DP slave. After traversing the periodic interaction tasks of all DP slaves, if there is a requirement for non-periodic data exchange, only one non-periodic data exchange is performed, that is, only one non-periodic data acquisition is performed for one DP slave. Due to the low bandwidth of Profibus-DP, the DP master can only collect aperiodic HART data from one channel of a DP slave in each communication cycle. Based on this, if multiple DP slaves have aperiodic communication requirements in one communication cycle, they can only wait in line for the subsequent communication cycle to exchange aperiodic data.
[0023] The above data collection methods can barely meet the requirements of aperiodic HART data collection efficiency when the HART instrument scale is small and the frequency of aperiodic interactive tasks is not high. However, for application sites with large-scale HART instruments and frequent aperiodic interactive tasks, the above data collection methods will result in too low aperiodic HART data collection efficiency.
[0024] In order to solve the above problems, in the embodiment of the present application, the DP master station will pre-establish a slave station polling table with the DP slave station number as the index. After the DP master station receives the non-periodic HART data acquisition command issued by the AMS (Asset Management System), it will establish a command cache table to cache the non-periodic HART data acquisition command. After the non-periodic HART data acquisition command is received, multiple target data acquisition instructions are sent to each target DP slave station based on the non-periodic HART data acquisition command. In this way, multiple target DP slave stations can perform data acquisition concurrently without waiting for the data acquisition of one target DP slave station to be completed before performing data acquisition of the next target DP slave station.
[0025] The DP master station will also update the corresponding table items in the polling table based on its own data interaction status, so as to determine the data collection status of the DP slave station based on the values of each table item in the polling table, so as to perform accurate non-periodic HART data query. Based on this, the embodiment of the present application can realize accurate concurrent collection of non-periodic HART data of multiple target DP slave stations, and improve the collection efficiency of non-periodic HART data.
[0026] After introducing the basic principles of the present application, various non-limiting embodiments of the present application will be described in detail with reference to the accompanying drawings.
[0027] Exemplary Methods
[0028] Figure 1 This is a flow chart of a method for collecting non-periodic HART data according to an embodiment of the present specification. Figure 1 As shown, the method is applied to a DP master station, comprising:
[0029] Step 101, when a non-periodic HART data acquisition command is received in the first DP communication cycle, a target data acquisition instruction is sent to the target DP slave station based on the non-periodic HART data acquisition command, and each DP slave station is polled in turn based on a preset polling order to obtain the target data corresponding to the target DP slave station.
[0030] Specifically, based on the foregoing, it can be understood that a DP communication cycle includes a periodic HART data acquisition phase and an aperiodic HART data acquisition phase. In the prior art, since only one aperiodic data exchange is performed in the aperiodic HART data acquisition phase, and since the bandwidth of Profibus-DP is low, a DP communication cycle can only collect aperiodic HART data of one channel of a DP slave station, resulting in a long aperiodic HART data acquisition time. In response to this problem, the aperiodic HART data acquisition method of the embodiment of this specification adopts a concurrent acquisition method to improve the acquisition efficiency of aperiodic HART data.
[0031] More specifically, the non-periodic HART data acquisition command is issued by the AMS. It is worth noting that the non-periodic HART data acquisition command is a plurality of data acquisition commands for a plurality of DP slave stations. The AMS can send the non-periodic HART data acquisition command to the DP master station in a centralized or intermittent manner. For any DP slave station, the corresponding data acquisition command may be one or more. It is understandable that the non-periodic HART data acquisition command includes the indication information of the target DP slave station. Based on this, after the DP master station receives the non-periodic HART data acquisition command, a command cache table is established to cache the non-periodic HART data acquisition command to wait for sending to the DP slave station. The table entry content of the command cache table includes: slave station number, command length and command content (used to indicate the target data to be collected). After the non-periodic HART data acquisition command is received, the target data acquisition instruction can be sent to the target DP slave station based on the non-periodic HART data acquisition command. In this way, the target DP slave station can perform data acquisition concurrently.
[0032] It is worth noting that the DP master will splice multiple non-periodic HART data acquisition commands for a certain DP slave into a large package and send it. Based on this, the utilization rate of bandwidth resources can be improved. After sending the target data acquisition instruction to the target DP slave, the DP master can poll each DP slave in turn based on the preset polling order to obtain the target data corresponding to the target DP slave. Since the target DP slave executes data acquisition concurrently, there is no need to wait for one DP slave to complete the data acquisition before executing the data acquisition of the next DP slave, which greatly improves the acquisition efficiency of non-periodic HART data.
[0033] Step 102, when the target data corresponding to the target DP slave station is not collected in the first DP communication cycle, each DP slave station is polled in turn based on a preset polling order in the second DP communication cycle to obtain the target data corresponding to the remaining target DP slave stations;
[0034] The first DP communication cycle and the second DP communication cycle are consecutive DP communication cycles.
[0035] Specifically, since the duration of the non-periodic HART data acquisition phase of the first DP communication cycle is limited, there may be a situation where the target data corresponding to the target DP slave station is not fully acquired in the first DP communication cycle. In this case, the embodiment of this specification further continues to poll each DP slave station in turn based on a preset polling order in the second DP communication cycle to obtain the target data corresponding to the remaining target DP slave stations. It is worth noting that the first DP communication cycle and the second DP communication cycle are continuous DP communication cycles. Based on this, the embodiment of the present application can complete a round of non-periodic HART data acquisition through two DP communication cycles.
[0036] In an exemplary embodiment, the DP master station of the embodiment of this specification will pre-establish a slave polling table with the DP slave number as the index, and the table entry corresponding to each DP slave station includes: polling status, the number of times the non-periodic HART data collection is executed in this DP communication cycle, the command sending timing (used to monitor and manage the time process of command sending) and the data index in the corresponding command cache table (used to quickly obtain the command content from the command cache table). The DP master station will subsequently update the corresponding table entry in the polling table based on the status of command sending and data collection, and perform non-periodic HART data collection based on the value of each table entry in the polling table. Specifically, after receiving the non-periodic HART data collection command in the first DP communication cycle, the method also includes:
[0037] Based on the non-periodic HART data acquisition command, the polling state of the target DP slave station in the pre-created slave polling table is updated to be sent;
[0038] Among them, the initial polling state of each DP slave is empty.
[0039] Based on this, the DP master station can determine whether the non-periodic HART data acquisition command is sent to the target DP slave station based on the polling status of the target DP slave station in the slave station polling table. If the polling status is to be sent, the corresponding non-periodic HART data acquisition command is sent to the target DP slave station.
[0040] In an exemplary embodiment, after sending a target data acquisition instruction to a target DP slave station based on the non-periodic HART data acquisition command, the method further includes:
[0041] The polling status of the target DP slave station in the pre-created slave station polling table is updated to be queried based on the non-periodic HART data acquisition command.
[0042] Based on this, the DP master station can determine whether to send a data query instruction to the target DP slave station based on the polling status of the target DP slave station in the slave station polling table. If the polling status is to be queried, the corresponding data query instruction is sent to the target DP slave station. It is worth noting that in the embodiment of this specification, after the DP master station sends a data query instruction to the DP slave station, if it receives a short response from the DP slave station, it means that the DP slave station has not collected the HART data. At this time, the DP master station will maintain the corresponding polling status as to be queried. If the DP master station receives the response data from the DP slave station and the DP slave station notifies that there is still data to be reported (which can be determined by the indication information in the response message), the DP master station will also maintain the corresponding polling status as to be queried.
[0043] In an exemplary embodiment, the step of sequentially polling each DP slave station based on a preset polling order and acquiring target data corresponding to the target DP slave station specifically includes:
[0044] Determine a preset polling sequence based on a pre-created slave polling table;
[0045] Based on the preset polling order, the polling status of each DP slave station is determined in turn, and the target data corresponding to the target DP slave station with the polling status to be queried is obtained until the target data corresponding to the target DP slave station is collected or the number of non-periodic HART data collections reaches the preset collection number upper limit.
[0046] It can be understood that the order of the DP slave station numbers in the slave station polling table is the polling order. The DP master station of the embodiment of this specification determines the polling status of each DP slave station in turn based on the preset polling order, and obtains the target data corresponding to the target DP slave station whose polling status is to be queried, until the target data corresponding to the target DP slave station is collected or the number of non-periodic HART data collections reaches the preset collection number upper limit. To determine whether the target data corresponding to the target DP slave station has been collected, the non-periodic HART data received from the DP master station can be used to determine. The preset collection number upper limit is determined based on the duration corresponding to the non-periodic HART data collection phase in the DP communication cycle and the duration of a single data interaction between the DP master and the DP slave. The preset collection number upper limit can be dynamically adjusted according to actual needs. It is only necessary to ensure that the collection time of the non-periodic HART data does not exceed the duration corresponding to the non-periodic HART data collection phase in the DP communication cycle. The embodiment of this specification does not make specific limitations here.
[0047] In one illustrative example, Figure 2 This is a schematic diagram of a target data acquisition process according to an embodiment of the present specification. Figure 2As shown, the acquisition polling state is the target data corresponding to the target DP slave station to be queried, until the target data corresponding to the target DP slave station is collected or the number of non-periodic HART data collections reaches the preset collection number upper limit, specifically including:
[0048] Step S1, determine whether the polling status of the current DP slave station is to be queried, if so, execute step S2; otherwise, jump to step S4;
[0049] Step S2, determining whether the number of non-periodic HART data acquisition times reaches a preset upper limit of the number of acquisition times, if so, jump to step S5; otherwise, execute step S3;
[0050] Step S3, sending a data query instruction to the current DP slave station to obtain the target data corresponding to the current DP slave station;
[0051] Step S4, determine whether the target data corresponding to the target DP slave station has been collected, if so, jump to step S6; otherwise, execute step S5;
[0052] Step S5, query the polling status of the next DP slave station, and jump to step S1;
[0053] Step S6, entering the next DP communication cycle.
[0054] It is worth noting that after sending a data query instruction to the current DP slave station to obtain the target data corresponding to the current DP slave station, step S3 further includes:
[0055] Set the polling status of the current DP slave in the slave polling table to empty.
[0056] Based on this, the embodiments of this specification can accurately and efficiently obtain the target data corresponding to some or all of the target DP slave stations within the first DP communication cycle. At the same time, after the target data corresponding to the current DP slave station is collected, since its polling state is set to empty, the subsequent polling process will no longer poll the DP slave station, thereby further improving the collection efficiency of non-periodic HART data. It is worth noting that after the DP master station sends a data query instruction, if no response data is received after the preset timeout waiting time, the DP master station will also set the corresponding polling state to empty. It can be understood that the method of obtaining the target data corresponding to the remaining target DP slave stations in the second DP communication cycle is the same as the method of obtaining the target data corresponding to the target DP slave station in the first DP communication cycle, and the embodiments of this specification will not be repeated here.
[0057] In an exemplary instance, when the data volume of the target data is greater than the target threshold, multiple data packets sent by the target DP slave station are received to parse and obtain the target data from the multiple data packets; the multiple data packets are transmitted by the target DP slave station to the DP master station in a packetized transmission manner.
[0058] Optionally, the target threshold may include 244 bytes. Based on the foregoing, when there are multiple non-periodic HART data acquisition commands for the current DP slave station, the amount of data collected by the current DP slave station may exceed the total capacity of 244 bytes of the response data packet. To address this issue, the embodiment of this specification will use packet transmission to send it to the DP master station when the target data corresponding to the current DP slave station is larger than 244 bytes, so as to avoid errors in the data interaction process.
[0059] The following will be combined Figure 3 The following describes a typical interaction process of a method for collecting non-periodic HART data in an embodiment of this specification. Figure 3 As shown, in the first DP communication cycle (ie Figure 3 In polling cycle 1, the AMS sends N non-periodic HART data acquisition commands to the DP master station. After receiving the non-periodic HART data acquisition commands, the DP master station caches them through the command cache table and sends them to the target DP slave station. After receiving the non-periodic HART data acquisition commands, the target DP slave station starts to collect target data. In the second DP communication cycle (i.e. Figure 3 In polling cycle 2), the DP master station sequentially polls each DP slave station based on the polling order in the polling table to obtain the target data corresponding to the target DP slave station and caches it. Subsequently, the AMS only needs to send a query instruction to the DP master station to obtain the target data corresponding to the target DP slave station. Based on this, the method for collecting non-periodic HART data in the embodiment of this specification can complete the efficient collection of large quantities of non-periodic HART data in two DP communication cycles.
[0060] The non-periodic HART data collection method provided in the embodiments of the present specification includes: when a non-periodic HART data collection command is received in the first DP communication cycle, a target data collection instruction is sent to the target DP slave station based on the non-periodic HART data collection command, and each DP slave station is polled in turn based on a preset polling order to obtain the target data corresponding to the target DP slave station; when the target data corresponding to the target DP slave station is not collected in the first DP communication cycle, each DP slave station is continued to be polled in turn based on a preset polling order in the second DP communication cycle to obtain the target data corresponding to the remaining target DP slave stations; the first DP communication cycle and the second DP communication cycle are continuous DP communication cycles, and the non-periodic HART data can be obtained by concurrent collection, thereby improving the collection efficiency of the non-periodic HART data.
[0061] Exemplary Computing Devices
[0062] Another embodiment of the present application further provides a computing device, see Figure 4 As shown, an exemplary embodiment of the present specification also provides a computing device, including: a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method for collecting non-periodic HART data according to various embodiments of the present specification described in the above embodiments of the present specification are executed.
[0063] The internal structure of the computing device can be as follows Figure 4 As shown, the computing device includes a processor, a memory, a network interface and an input device connected through a system bus. Among them, the processor of the computing device is used to provide computing and control capabilities. The memory of the computing device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computing device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the steps in the method for collecting non-periodic HART data according to various embodiments of the present specification are described in the above embodiments of the present specification.
[0064] The processor may include a main processor and may also include a baseband chip, a modem, etc.
[0065] The memory stores a program for executing the technical solution of the present invention, and may also store an operating system and other key services. Specifically, the program may include a program code, and the program code includes computer operation instructions. More specifically, the memory may include a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), other types of dynamic storage devices that can store information and instructions, a disk storage, a flash, and the like.
[0066] The processor may be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the scheme of the present invention. It may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component.
[0067] The input device may include a device for receiving data and information input by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, a pedometer, or a gravity sensor.
[0068] Output devices may include means that allow information to be output to a user, such as display screens, printers, speakers, etc.
[0069] The communication interface may include using any transceiver or the like to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.
[0070] The processor executes the program stored in the memory and calls other devices, which can be used to implement each step of any non-periodic HART data collection method provided in the above embodiments of the present application.
[0071] The computing device may also include a display component and a voice component. The display component may be a liquid crystal display or an electronic ink display. The input device of the computing device may be a touch layer covered on the display component, or a button, trackball or touchpad provided on the housing of the computing device, or an external keyboard, touchpad or mouse.
[0072] Those skilled in the art will understand that Figure 4The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of this specification, and does not constitute a limitation on the computing device to which the scheme of this specification is applied. The specific computing device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0073] Exemplary computer program products and storage media
[0074] In addition to the above-mentioned methods and devices, the non-periodic HART data collection method provided in the embodiments of this specification can also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the non-periodic HART data collection method according to various embodiments of this specification described in the above "Exemplary Method" section of this specification.
[0075] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (SDK).
[0076] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the embodiments of the present specification, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0077] In addition, an embodiment of the present specification also provides a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor to perform the steps of the method for collecting non-periodic HART data according to various embodiments of the present specification described in the above "Exemplary Method" section of the present specification.
[0078] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this specification can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0079] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0080] The above-mentioned embodiments only express several implementation methods of this specification, and the descriptions are relatively specific and detailed, but they cannot be understood as limiting the scope of the solutions provided by the embodiments of this specification. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of this specification, which all belong to the protection scope of this specification. Therefore, the protection scope of the patent of this specification shall be based on the attached claims.
Claims
1. A method for collecting non-periodic HART data, applied to a DP master station, characterized in that: include: In the case where a non-periodic HART data acquisition command is received in the first DP communication cycle, a target data acquisition instruction is sent to the target DP slave station based on the non-periodic HART data acquisition command, and each DP slave station is polled in turn based on a preset polling order to obtain target data corresponding to the target DP slave station; In the case that the target data corresponding to the target DP slave station is not collected in the first DP communication cycle, each DP slave station is polled in turn based on a preset polling order in the second DP communication cycle to obtain the target data corresponding to the remaining target DP slave stations; The first DP communication cycle and the second DP communication cycle are consecutive DP communication cycles.
2. The method for collecting non-periodic HART data according to claim 1, characterized in that: After receiving the non-periodic HART data acquisition command in the first DP communication cycle, the method further includes: Based on the non-periodic HART data acquisition command, the polling state of the target DP slave station in the pre-created slave polling table is updated to be sent; Among them, the initial polling state of each DP slave is empty.
3. The method for collecting non-periodic HART data according to claim 2, characterized in that: After sending a target data acquisition instruction to the target DP slave station based on the non-periodic HART data acquisition command, the method further includes: The polling status of the target DP slave station in the pre-created slave station polling table is updated to be queried based on the non-periodic HART data acquisition command.
4. The method for collecting non-periodic HART data according to claim 3, characterized in that: The method of sequentially polling each DP slave station based on a preset polling order and acquiring target data corresponding to the target DP slave station specifically includes: Determine a preset polling sequence based on a pre-created slave polling table; Based on the preset polling order, the polling status of each DP slave station is determined in turn, and the target data corresponding to the target DP slave station with the polling status to be queried is obtained until the target data corresponding to the target DP slave station is collected or the number of non-periodic HART data collections reaches the preset collection number upper limit.
5. The method for collecting non-periodic HART data according to claim 4, characterized in that: The acquisition of the polling state is the target data corresponding to the target DP slave station to be queried, until the target data corresponding to the target DP slave station is collected or the number of non-periodic HART data collections reaches a preset upper limit of the number of collections, specifically including: Step S1, determine whether the polling status of the current DP slave station is to be queried, if so, execute step S2; otherwise, jump to step S4; Step S2, determining whether the number of non-periodic HART data acquisition times reaches a preset upper limit of the number of acquisition times, if so, jump to step S5; otherwise, execute step S3; Step S3, sending a data query instruction to the current DP slave station to obtain the target data corresponding to the current DP slave station; Step S4, determine whether the target data corresponding to the target DP slave station has been collected, if so, jump to step S6; otherwise, execute step S5; Step S5, query the polling status of the next DP slave station, and jump to step S1; Step S6, entering the next DP communication cycle.
6. The method for collecting non-periodic HART data according to claim 5, characterized in that: After sending a data query instruction to the current DP slave station to obtain target data corresponding to the current DP slave station, step S3 further includes: Set the polling status of the current DP slave in the slave polling table to empty.
7. The method for collecting non-periodic HART data according to claim 1, characterized in that: The non-periodic HART data acquisition commands are multiple data acquisition commands for multiple DP slave stations.
8. The method for collecting non-periodic HART data according to claim 1, characterized in that: When the amount of the target data is greater than the target threshold, receiving a plurality of data packets sent by the target DP slave station, so as to parse and obtain the target data from the plurality of data packets; The target DP slave station transmits the target data to the DP master station by using packet transmission.
9. A computing device, characterized in that The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for collecting non-periodic HART data according to any one of claims 1 to 8 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for collecting non-periodic HART data according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
EtherCAT real-time performance improving method and system, storage medium and program product
CN120848442A