A programmable data acquisition instrument and a programmable data acquisition device

The programmable data acquisition instrument addresses the limitations of single-protocol devices by integrating modular data processing and multiple interfaces, improving accuracy and reducing server load.

CN116232932BActive Publication Date: 2025-01-03GALLUP ENG CONSULTING (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211695129.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-06
Publication Date
2025-01-03
Estimated Expiration
2042-12-06

AI Technical Summary

Technical Problem

Existing data acquisition devices are limited to single protocols and simple I/O signals, failing to accommodate diverse communication interfaces and increasing computing pressure on computers, especially when dealing with CNC and non-CNC devices.

Method used

A programmable data acquisition instrument with modular design, including data input, processing, and output modules, supporting multiple communication interfaces and I/O terminals, capable of processing data through programmable logic operations and outputting via TCP Client or I/O terminals, with expandable hardware and various communication protocols.

Benefits of technology

Enhances data acquisition accuracy, reduces computing pressure on servers, and decreases bandwidth demand by performing data processing within the instrument, allowing seamless integration with diverse devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116232932B_ABST
    Figure CN116232932B_ABST
Patent Text Reader

Abstract

The present application discloses a programmable data acquisition instrument and a programmable data acquisition device. Based on the implementation scheme of the present application, the multi-acquisition / communication protocol / programmable data acquisition hardware provided by the present application can perform effective data judgment, improve the accuracy of data acquisition, and reduce the computing pressure of the server. The data processing is completed by the acquisition instrument, which also reduces the computing pressure of the computer. If the output object is a cloud server, the demand for bandwidth is also greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data acquisition, and in particular to a programmable data acquisition instrument and a programmable data acquisition device. Background Art

[0002] Data acquisition devices / instruments / equipment can collect data and communicate with target devices through different data formats to realize data reading and collection.

[0003] There are many types of existing data acquisition devices, but the acquisition device cannot meet the requirements of using different means to collect data and output effective data in the same programmable data acquisition format under the premise of device diversity. It can only be processed through a single protocol or simple I / O signal. Therefore, there are defects in the communication method.

[0004] There are many devices involved in the industrial and IoT fields, and the types of communication / collection interfaces vary. There are CNC devices that include operating systems (such as Fanuc, Simenes, Heidehhain, etc.), as well as non-CNC devices without human-machine interface interaction. These devices can only collect data through computers, which brings great computing pressure to computers and greatly increases the demand for bandwidth. Summary of the invention

[0005] The main purpose of the present application is to provide a programmable data acquisition instrument and a programmable data acquisition device to solve the current problems.

[0006] In order to achieve the above objectives, this application provides the following technologies:

[0007] The first aspect of the present application provides a programmable data acquisition instrument, comprising:

[0008] Programmable data acquisition instrument body;

[0009] A data input module, used to collect initial data from the first device and pre-process it, obtain pre-processed data and send it to the data processing module;

[0010] a data processing module, configured to receive the pre-processed data and perform a logic operation on the data processing module to form application data to be output to the second device;

[0011] A data output module, used for outputting the application data to a second device;

[0012] The data input module, data processing module and data output module are all arranged on the programmable data acquisition instrument body.

[0013] As an optional implementation scheme of the present application, optionally, the data input module performs data collection in the form of:

[0014] Communicate with the first device through the communication interface to collect data;

[0015] and / or,

[0016] The data is collected by communicating with the first device through the I / O terminal.

[0017] As an optional implementation scheme of the present application, optionally, the data output module performs data output in the form of:

[0018] Outputting the application data to the second device in the form of TCP Client;

[0019] and / or,

[0020] The application data is output to the second device through the I / O terminal.

[0021] As an optional implementation scheme of the present application, optionally, it also includes:

[0022] A plurality of communication interfaces are arranged on the programmable data acquisition instrument body;

[0023] and / or,

[0024] A plurality of I / O terminals are arranged on the programmable data acquisition instrument body.

[0025] As an optional implementation scheme of the present application, optionally, the communication interface is at least one of the following interfaces:

[0026] RS232 interface, RS485 interface, TCP / IP interface or USB interface.

[0027] As an optional implementation scheme of the present application, optionally, the programmable data acquisition instrument body is provided with an expansion interface;

[0028] A plurality of the programmable data acquisition instrument bodies are expanded through the expansion interface to obtain the programmable data acquisition instrument.

[0029] As an optional implementation scheme of the present application, optionally, the data input module performs data acquisition / communication protocol, including at least one of the following drive protocols:

[0030] PLC driver, instrument driver, industrial control automation standard interface driver, CNC acquisition driver, non-standard protocol or Internet interface driver.

[0031] As an optional implementation scheme of the present application, optionally, the data processing module includes several:

[0032] Time counters, logic processors and analog processors.

[0033] A second aspect of the present application provides a programmable data acquisition device, characterized in that it includes:

[0034] The programmable data acquisition instrument described in the first aspect.

[0035] Compared with the prior art, this application can bring the following technical effects:

[0036] Based on the implementation scheme of this application, the multi-collection / communication protocol / programmable data acquisition hardware provided by this application can perform effective data judgment, improve the accuracy of data acquisition, and reduce the computing pressure of the server. The data processing is completed by the acquisition instrument, which also reduces the computing pressure of the computer. If the output object is a cloud server, the demand for bandwidth is also greatly reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The drawings constituting a part of this application are used to provide a further understanding of this application, so that other features, purposes and advantages of this application become more obvious. The schematic embodiment drawings and their descriptions of this application are used to explain this application and do not constitute an improper limitation on this application. In the drawings:

[0038] Figure 1 It is a schematic diagram of the application composition of the programmable data acquisition instrument of the present invention;

[0039] Figure 2 It is a schematic diagram of the spectrum curve of the sampling frequency of the present invention;

[0040] Figure 3 It is a schematic diagram of the application composition of the programmable data acquisition device of the present invention;

[0041] Figure 4 It is a signal processing schematic diagram for effectively judging the spindle signal of the present invention;

[0042] Figure 5 It is another signal processing schematic diagram for effectively judging the spindle signal of the present invention;

[0043] Figure 6 It is a signal processing schematic diagram of the spindle signal invalidity judgment of the present invention;

[0044] Figure 7 It is a signal judgment schematic diagram of the three-color lamp action signal of the present invention;

[0045] Figure 8 It is a schematic diagram of the working process of the programmable data acquisition instrument of the present invention;

[0046] Fig. 9 It is a schematic diagram of the execution of the programmable data acquisition instrument of the present invention entering the running state;

[0047] Fig.10 It is a schematic diagram of the interrupt execution flow of the programmable data acquisition instrument of the present invention. DETAILED DESCRIPTION

[0048] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0049] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0050] In the present application, the terms "upper", "lower", "left", "right", "front", "back", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings. These terms are mainly used to better describe the present application and its embodiments, and are not used to limit the indicated devices, elements or components to have a specific orientation, or to be constructed and operated in a specific orientation.

[0051] In addition, some of the above terms may be used to express other meanings in addition to indicating orientation or positional relationship. For example, the term "on" may also be used to express a certain dependency or connection relationship in some cases. For those of ordinary skill in the art, the specific meanings of these terms in this application can be understood according to specific circumstances.

[0052] In addition, the term "plurality" shall mean two or more.

[0053] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0054] like Figure 1 As shown, the programmable data acquisition instrument is divided into three main modules, namely, data input module, data processing module and data output module. In the data processing module, there are multiple computing units such as time counter and logic processor, and the existing processing unit can be used.

[0055] In this embodiment, the first device refers to a device that can be used for data acquisition by a programmable data acquisition instrument, such as programming tool software (programming terminal), switch sensor, working power supply, etc.; the second device refers to a device that needs to import programming and other data through a programmable data acquisition instrument, such as various testing equipment, actuators, etc.

[0056] The first aspect of the present application provides a programmable data acquisition instrument, comprising:

[0057] Programmable data acquisition instrument body; the body is the carrier part of the programmable instrument, and the structure, size and appearance are not limited in this embodiment;

[0058] A data input module, used to collect initial data from the first device and pre-process it, obtain pre-processed data and send it to the data processing module;

[0059] a data processing module, configured to receive the pre-processed data and perform a logic operation on the data processing module to form application data to be output to the second device;

[0060] A data output module, used for outputting the application data to a second device;

[0061] The data input module, data processing module and data output module are all arranged on the programmable data acquisition instrument body.

[0062] The programmable data acquisition instrument of this embodiment has a variety of communication interfaces and I / O terminals, can be connected to different types of equipment, use the built-in acquisition / communication protocol to connect the equipment to obtain data, and use the I / O terminals to obtain digital / analog signals.

[0063] Programmable data acquisition instruments can process signals / data through programming, which can be divided into:

[0064] The first part is the PLC part. The PLC part can filter and integrate the input signals through ladder diagram programming to form data that can be output to the external system.

[0065] The second part is the data processing part. It can perform logical operations through the program and then form data that can be output to the external system for use.

[0066] The third part, the data output part, is divided into two parts: the first part, the data processed by the program will be output to the external system in the form of TCPClient; the second part, the I / O signal output, can be used to control some relays or other powered devices.

[0067] As an optional implementation scheme of the present application, optionally, the data input module performs data collection in the form of:

[0068] Communicate with the first device through the communication interface to collect data;

[0069] and / or,

[0070] The data is collected by communicating with the first device through the I / O terminal.

[0071] Data input can be collected through the communication interface or I / O terminals.

[0072] As an optional implementation scheme of the present application, optionally, the data output module performs data output in the form of:

[0073] Outputting the application data to the second device in the form of TCP Client;

[0074] and / or,

[0075] The application data is output to the second device through the I / O terminal.

[0076] Data output can be output through TCP Client or I / O terminal.

[0077] The above input / output forms are not described in detail in this embodiment.

[0078] As an optional implementation scheme of the present application, optionally, it also includes:

[0079] A plurality of communication interfaces are arranged on the programmable data acquisition instrument body;

[0080] and / or,

[0081] A plurality of I / O terminals are arranged on the programmable data acquisition instrument body.

[0082] The number of communication interfaces and I / O terminals as well as the specific application type correspond to the configured acquisition / communication protocol.

[0083] Sampling frequency when using programmable data logger:

[0084] When the sampling frequency is less than 2 times the signal frequency, the original high-frequency signal will be sampled into a low-frequency signal, as shown below Figure 2 shown.

[0085] The red signal is the original high-frequency signal, but because the sampling frequency does not meet the requirements of the sampling theorem, the actual sampled data points are shown as blue dots in the figure. By connecting these blue dots into a curve, it can be clearly seen that this is a low-frequency signal. Figure 2 In the sampling time length shown, the red signal has 18 cycles, but the sampled blue signal has only 2 cycles. That is, the frequency component of the sampled signal is 1 / 9 of the frequency component of the original signal. The high-frequency signal is aliased into the low-frequency signal.

[0086] The programmable data acquisition instrument can achieve high-frequency acquisition (200Hz) through the control of chips and programs. The smaller the time resolution, the higher the sampling frequency, and the closer the collected digital signal is to the real signal.

[0087] As an optional implementation scheme of the present application, optionally, the communication interface is at least one of the following interfaces:

[0088] RS232 interface, RS485 interface, TCP / IP interface or USB interface.

[0089] The acquisition device mentioned above has multiple communication interfaces, including: RS232 interface, RS485 interface, TCP / IP interface, USB interface, etc. (RS232, TCP / IP and USB interfaces can also be used to inject programs into the device)

[0090] The I / O terminals prepared by the acquisition device mentioned above specifically include: the I / O points of the main body range from 20 points to 40 points, and can be expanded to a maximum of 496 points.

[0091] The acquisition device mentioned above can be programmed through ladder diagrams, and the available information includes 1024 input and output relays, 2048 internal relays, 512 timers, 512 counters, and 1024 special relays.

[0092] The programmable data acquisition instrument of the present application can be extended for application.

[0093] As an optional implementation scheme of the present application, optionally, the programmable data acquisition instrument body is provided with an expansion interface;

[0094] A plurality of the programmable data acquisition instrument bodies are expanded through the expansion interface to obtain the programmable data acquisition instrument.

[0095] Based on the data interaction principle described in Example 1, this embodiment uses the programmable data acquisition instrument to perform data acquisition and programming applications.

[0096] A second aspect of the present application provides a programmable data acquisition device, characterized in that it includes:

[0097] The programmable data acquisition instrument described in the first aspect.

[0098] like Figure 3 As shown, the programmable data acquisition instrument body can be connected to multiple expansion units through its own expansion interface to achieve integrated functional expansion. The specific amount of unit data that needs to be expanded is determined by the user in combination with the functional equipment that needs to be detected and its performance.

[0099] When the acquisition device is in use, the integrated expansion unit is utilized to collect and process data.

[0100] As an optional implementation scheme of the present application, optionally, the data input module performs data acquisition / communication protocol, including at least one of the following drive protocols:

[0101] PLC driver, instrument driver, industrial control automation standard interface driver, CNC acquisition driver, non-standard protocol or Internet interface driver.

[0102] The acquisition / communication protocols built into the acquisition device mentioned above include but are not limited to various PLC drivers, instrument drivers, industrial control automation standard interface drivers, CNC acquisition drivers and Internet interface drivers.

[0103] Instruments and meters: Modbus protocol, DLT645 protocol, CJ188 protocol, etc.

[0104] PLC: Mitsubishi, Siemens, Omron, Panasonic, etc.;

[0105] CNC type: FANUC Focas, SIEMENS OPC UA, HEIDENHAIN;

[0106] Industrial control automation standard interface: OPC;

[0107] Non-standard protocols;

[0108] Internet interface: MQTT, HTTP;

[0109] As for the acquisition device mentioned above, it outputs data to the external system in the form of TCP Client. The Port port can be directly connected to the acquisition instrument and configured through dedicated software.

[0110] The configurable contents also include RS232, RS485 communication parameters, TCP Port IP address, etc.

[0111] In order to make the technical solution and advantages of the present application clearer, further explanation will be given below through examples (the following examples are only a part of the collection device, not all applications).

[0112] Example 1

[0113] The device with two spindles uses I / O signals for acquisition and processing. The two spindles cannot be controlled separately to complete different actions. The rotation of the two spindles will obtain X1 and X2 respectively. As long as one signal is obtained from X1 and X2, the action is judged to be valid and X3 is output. Only when neither X1 nor X2 can be obtained, the action is judged to be invalid and no operation is performed. See respectively Figure 4 , Figure 5 , Figure 6 shown.

[0114] First the data input module tries to get the signal of X1 or X2.

[0115] The data processing module makes a valid / invalid judgment based on the input of the X1 or X2 signal.

[0116] The data output module outputs X3 or does nothing based on the judgment.

[0117] Example 2

[0118] The I / O signal of the three-color light is used to determine whether the action is valid. If the light is on, X1 is obtained, and if the light is off, X0 is obtained. If the light is always on, the action is valid and X1 is output. If the light flashes frequently, the action is invalid and no operation is performed. Figure 7 shown.

[0119] First, the data input module tries to obtain the signal of X1.

[0120] The data processing module uses a time counter to determine whether the X1 signal duration exceeds 5 seconds and makes a valid / invalid judgment on the signal.

[0121] The data output module outputs X1 or does nothing based on the judgment.

[0122] Example 3

[0123] The network port connects to devices with OPC protocol to obtain data and output it through TCPClient.

[0124] First, the data input module grabs the data at each address through the built-in OPC protocol and sends it to the data processing module for structured splitting according to different data, as well as some necessary operations.

[0125] The data output module outputs data through the configured TCP Port.

[0126] Example 4

[0127] The network port connects to devices with the Focas protocol to acquire data, and directly outputs it to the Daoyun platform through the MQTT protocol.

[0128] Example 5

[0129] High-frequency acquisition is used to obtain the actual coordinate values ​​of the tool. Through the set coordinate system, the acquired actual coordinate values ​​can be plotted into a tool path trajectory. The higher the sampling frequency, the smoother the trajectory.

[0130] First, the data input module grabs the data on each address through the built-in Focas protocol and sends it to the data processing module, which performs structured splitting and some necessary operations based on different data.

[0131] The data output module outputs data to the target server through the programmed MQTT protocol.

[0132] The general workflow of a programmable data logger is as follows: Figure 8 Sequential execution: First execute the power-on sequence program, then cyclically execute the scanning process including input and output transmission, user program, error handling, etc.

[0133] Cyclic Scan

[0134] like Fig. 9 As shown in the figure, after the data collector enters the RUN state, it starts from the start address and executes the user program in sequence to the END instruction. The data collector will repeat this process. In addition, in the RUN state, in addition to executing the user program, it also performs input / output status read / write processing, input and output transmission and other services.

[0135] Interrupt Function

[0136] The data collector scans cyclically. When a certain condition is met, the scanning execution of the current user program is terminated and a special interrupt subroutine is executed. After the interrupt subroutine is executed, it returns to the interruption point of the user program and continues the scanning execution of the user program. The program execution process is as follows: Fig.10 shown.

[0137] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A programmable data acquisition instrument, which realizes 200Hz high-frequency acquisition through chip and program control, characterized in that: include, Programmable data acquisition instrument body; The data input module is used to collect the initial data from the first device and perform preprocessing. Through ladder diagram programming, the input signal is filtered and integrated to obtain preprocessed data and send it to the data processing module; a data processing module, configured to receive the preprocessed data and perform a logic operation on the preprocessed data to form application data to be output to the second device; The data output module is used to output the application data to the second device; it is divided into two parts: the first part, the data processed by the program will be output to the external system in the form of TCPClient; the second part, the I / O signal output, can be used to control some relays or other power-on devices; The data input module, data processing module and data output module are all arranged on the programmable data acquisition instrument body; The application method of the programmable data acquisition instrument includes the following steps: (1) The data input module attempts to obtain the signal of X1 or X2; the data processing module makes a valid / invalid judgment based on the input of the X1 or X2 signal; the data output module outputs X3 or does nothing based on the judgment; specifically: The device with two spindles uses I / O signals for acquisition and processing. The two spindles cannot be controlled separately to complete different actions. The rotation of the two spindles will obtain X1 and X2 respectively. As long as one signal is obtained from X1 and X2, the action is judged to be valid and X3 is output; only when neither X1 nor X2 can be obtained, the action is judged to be invalid and no operation is performed; (2) The data input module attempts to obtain the signal of X1; The data processing module uses the time counter to determine whether the X1 signal lasts for more than 5 seconds and makes a valid / invalid judgment on the signal; the data output module outputs X1 or does nothing based on the judgment; specifically: The I / O signal of the three-color light is used to determine whether the action is valid. If the light is on, X1 is obtained, and if the light is off, X0 is obtained. If the light is always on, the action is valid and X1 is output. If the light is flashing, the action is invalid and no operation is performed. (3) First, the data input module grabs the data on each address through the built-in OPC protocol; the data processing module performs structured splitting and some operations based on different data; the data output module outputs data through the configured TCPPort; (4) The network port connects to a device with the Focas protocol to acquire data, and directly outputs it to the cloud platform through the MQTT protocol; (5) High-frequency acquisition of the actual coordinate values ​​of the tool. Through the set coordinate system, the acquired actual coordinate values ​​can be plotted into a tool path trajectory. The higher the sampling frequency, the smoother the trajectory. First, the data input module grabs the data at each address through the built-in Focas protocol. The data processing module performs structured splitting and some operations based on different data. The data output module outputs data to the target server through the MQTT protocol controlled by programming. (6) Cyclic scanning: After the data collector enters the RUN state, it starts from the start address and executes the user program in sequence to the END instruction. The data collector will repeat this process. In addition, in the RUN state, in addition to executing the user program, it also performs input / output status read / write processing, input and output transmission and other services. (7) Interrupt function: The data collector scans in a loop. When the conditions are met, it terminates the scan execution of the current user program and switches to execute a special interrupt subroutine. After the interrupt subroutine is completed, it returns to the user program interruption point and continues the scan execution of the user program.

2. A programmable data acquisition instrument as claimed in claim 1, characterized in that: The data input module collects data in the following ways: Communicate with the first device through the communication interface to collect data; and / or, The data is collected by communicating with the first device through the I / O terminal.

3. A programmable data acquisition instrument as claimed in claim 1, characterized in that: The data output module performs data output in the following forms: Outputting the application data to the second device in the form of TCP Client; and / or, The application data is output to the second device through the I / O terminal.

4. A programmable data acquisition instrument as claimed in claim 1, characterized in that: Also includes: A plurality of communication interfaces are arranged on the programmable data acquisition instrument body; and / or, A plurality of I / O terminals are arranged on the programmable data acquisition instrument body.

5. A programmable data acquisition instrument as claimed in claim 4, characterized in that: The communication interface is at least one of the following interfaces: RS232 interface, RS485 interface, TCP / IP interface or USB interface.

6. A programmable data acquisition instrument as claimed in claim 1, characterized in that: The programmable data acquisition instrument body is provided with an expansion interface; A plurality of the programmable data acquisition instrument bodies are expanded through the expansion interface to obtain the programmable data acquisition instrument.

7. A programmable data acquisition instrument as claimed in claim 1, characterized in that: The data input module performs data acquisition / communication protocols, including at least one of the following drive protocols: PLC driver, instrument driver, industrial control automation standard interface driver, CNC acquisition driver, non-standard protocol or Internet interface driver.

8. A programmable data acquisition instrument as claimed in claim 1, characterized in that: The data processing module includes several: Time counters, logic processors and analog processors.

9. A programmable data acquisition device, characterized in that: include: A programmable data acquisition device as claimed in any one of claims 1 to 8.