Data converter, signal transmission method, and signal transmission system

A data converter, a signal transmission method, and a signal transmission system for transmitting a signal to a programmable logic controller are provided. The data converter: performs sampling multiple times with respect to data detected by a sensor in one communication period of communication with a programmable logic controller; acquires statistical data by statisticizing a plurality of sampling data in the one communication period; and transmits the statistical data to the programmable logic controller when the one communication period is reached. Therefore, a signal sampling density is improved, and thus control accuracy can be enhanced. At the same time, a data transmission amount of a bus is reduced, a load on the programmable logic controller is reduced, and user convenience is improved.

CROSS-REFERENCE TO RELATED APPLICATION

This application is a 371 application of the international PCT application serial no. PCT/JP2017/041555, filed on Nov. 17, 2017, which claims the priority benefit of China application no. 201710070787.2, filed on Feb. 9, 2017. The entirety of each of the abovementioned patent applications is hereby incorporated by reference herein and made a part of this specification.

TECHNICAL FIELD

The invention relates to the field of communication technology, and more particularly, to a data converter, a signal transmission method, and a signal transmission system for transmitting a signal to a programmable logic controller.

BACKGROUND ART

In the existing technology, a data converter (e.g., AD/TS/Load Cell) communicates with a controller such as a programmable logic controller (PLC) to transmit a signal to the PLC. In a typical situation, the data converter implements data sampling one time in one communication period (e.g., 1 ms) with the PLC, and then performs analog-digital conversion to feed back the converted digital signal to the PLC.

Since the sampling period of the data converter is affected by the communication period, once the communication period gets longer, the number of sampling points in the unit time of the data converter decreases correspondingly, and a user cannot acquire enough sampling samples and cannot grasp the change in input of the PLC in a short time. Moreover, in the situation where the sampled data becomes faster over time, if sampling is performed only one time in one communication period, the sampling result may correspond to the peak or bottom position of the sampled data and may not accurately respond to the data information of the current sampled data, which may affect the control accuracy of the PLC.

It should be noted that the above introduction of the technical background is intended to facilitate a clear and complete description of the technical proposals of the invention and is detailed to facilitate understanding for those skilled in the art. These proposals are detailed only in the background art section of the invention, and the above technical proposals cannot be determined to be known to those skilled in the art.

SUMMARY OF THE INVENTION

Problems to be Solved by the Invention

The inventors can solve the above problem by using oversampling techniques in the data converter, e.g., performing sampling multiple times in one communication period. However, in the situation where the data converter performs sampling multiple times in one communication period and feeds back the sampling result of each time in the communication period, although the sampling density is secured, it is necessary to feed back the sampling result of each time, and the communication overhead and the PLC processing stress are increased, which thus affects the feedback rate of the sampling results and is unfavorable for the PLC to perform control accurately. At the same time, it was found that since the data converter feeds back a large amount of raw information, in order to acquire the useful information, the user needs to perform data processing for a second time on the PLC side, which makes the user's use inconvenient.

In order to solve the above problem, embodiments of the invention provide a data converter, a signal transmission method, and a signal transmission system for transmitting a signal to a programmable logic controller, which can improve the sampling density of signals of the data converter to improve the control accuracy, and at the same time, reduce the data transmission amount of the bus, reduce the load on the programmable logic controller, and make the user's use convenient.

Means for Solving the Problems

According to a first aspect of the embodiments of the invention, a data converter for transmitting a signal to a programmable logic controller is provided, the data converter including a sampling unit for performing sampling multiple times with respect to data detected by a sensor in one communication period of communication with the programmable logic controller; a processing unit for acquiring statistical data by statisticizing a plurality of sampling data in the communication period; and a transmission unit for transmitting the statistical data to the programmable logic controller when the communication period is reached.

According to a second aspect of the embodiments of the invention, in the data converter according to the first aspect, a data amount of the statistical data is less than a data amount of the plurality of sampling data.

According to a third aspect of the embodiments of the invention, in the data converter according to the first aspect, the statistical data include at least one or more of a maximum value, a minimum value, and an average value of the plurality of sampling data.

According to a fourth aspect of the embodiments of the invention, the data converter according to the first aspect further includes a setting unit for setting a type of the statistical data based on control information of the programmable logic controller.

According to a fifth aspect of the embodiments of the invention, a signal transmission method for use in a data converter which communicates with a programmable logic controller is provided, the signal transmission method including a step of performing, by the data converter, sampling multiple times with respect to data detected by a sensor in one communication period of communication with the programmable logic controller; a step of acquiring, by the data converter, statistical data by statisticizing a plurality of sampling data in the communication period; and a step of transmitting, by the data converter, the statistical data to the programmable logic controller when the communication period is reached.

According to a sixth aspect of the embodiments of the invention, in the signal transmission method according to the fifth aspect, a data amount of the statistical data is less than a data amount of the plurality of sampling data.

According to a seventh aspect of the embodiments of the invention, in the signal transmission method according to the fifth aspect, the statistical data include at least one or more of a maximum value, a minimum value, and an average value of the plurality of sampling data.

According to an eighth aspect of the embodiments of the invention, the signal transmission method according to the fifth aspect further includes a step of setting, by the data converter, a type of the statistical data based on control information of the programmable logic controller.

According to a ninth aspect of the embodiments of the invention, a signal transmission system including a data converter and a programmable logic controller is provided. The data converter communicates with the programmable logic controller. The data converter performs sampling multiple times with respect to data detected by a sensor in one communication period of communication with the programmable logic controller, acquires statistical data by statisticizing a plurality of sampling data in the communication period, and transmits the statistical data to the programmable logic controller when the communication period is reached. The programmable logic controller receives the statistical data transmitted by the data converter.

According to a tenth aspect of the embodiments of the invention, a signal transmission system including a sensor, a data converter, and a programmable logic controller is provided. The data converter communicates with the sensor and the programmable logic controller, respectively. The sensor performs data detection. The data converter performs sampling multiple times with respect to data detected by the sensor in one communication period of communication with the programmable logic controller, acquires statistical data by statisticizing a plurality of sampling data in the communication period, and transmits the statistical data to the programmable logic controller when the communication period is reached. The programmable logic controller receives the statistical data transmitted by the data converter.

Effects of the Invention

The beneficial effect of the invention is that the invention can significantly improve the sampling density of the signals to improve the control accuracy, and at the same time, voluntary data analysis is performed by the data converter, which reduces the data transmission amount of the bus, reduces the load on the main control unit, and makes the user's use convenient.

Referring to the following description and the drawings, the specific embodiments of the invention will be disclosed in detail to indicate the manner in which the principles of the invention may be employed. It should be understood that the embodiments of the invention are not limited in scope. Within the scope of the spirit and terms of the appended claims, the embodiments of the invention include various modifications, corrections, and equivalents.

The features described and/or shown in an embodiment may be used in the same or similar manner in one or more other embodiments, may be combined with the features in other embodiments, or may be replaced with the features in other embodiments.

It should be emphasized that the term “comprise/include” as used herein refers to the presence of a feature, a whole, a step, or a constituting element but does not exclude the presence or addition of one or more other features, wholes, steps, or constituting elements.

DESCRIPTION OF THE EMBODIMENTS

The foregoing and other features of the invention will be apparent from the following description with reference to the drawings. In the description and the drawings, specific embodiments of the invention will be specifically disclosed and some embodiments that can adopt the principles of the invention will be shown. It should be understood that the invention is not limited to the described embodiments, but on the contrary, the invention includes all corrections, modifications, and equivalents that fall within the scope of the claims.

Currently, by using oversampling techniques, a data converter may perform sampling multiple times in one communication period and feed back a sampling result of each time in the communication period.

FIG. 1is a schematic view of the content of signals transmitted to a PLC by a data converter using oversampling techniques. As shown inFIG. 1, assuming that the communication period is 10 ms, then the sampling period of the data converter is 100 μs. By using oversampling techniques, the data converter may perform sampling up to one hundred times in each communication period and transmit the sampling results of the one hundred times to the PLC. The PLC receives the sampling results of the one hundred times, and the user completes data statistics of the sampling results by a ladder program of the PLC.

However, as mentioned above, the above method affects the feedback rate of the sampling results and is unfavorable for the PLC to perform control accurately. Embodiments of the invention will be described in detail below.

Embodiment 1 of the invention provides a data converter for transmitting a signal to a PLC.

FIG. 2is a schematic configuration view of a data converter for transmitting a signal to a PLC according to Embodiment 1 of the invention. As shown inFIG. 2, a data converter10includes a sampling unit101, a processing unit102, and a transmission unit103.

The data converter10communicates with the PLC, and the sampling unit101performs sampling multiple times with respect to data detected by a sensor in one communication period. The processing unit102acquires statistical data by statisticizing a plurality of sampling data in the communication period. When the communication period is reached, the transmission unit103transmits the statistical data statisticized by the processing unit102to the corresponding PLC.

In the present embodiment, the sampling unit101performs sampling multiple times with respect to the data detected by the sensor in one communication period, and performs analog-digital conversion on the data acquired by sampling to acquire digital signals. As a result, the sampling density of the data converter can be improved to improve the control accuracy.

In the present embodiment, the processing unit102generates the statistical data by statisticizing the digital signals acquired by sampling in the communication period. For example, information such as the maximum value, the minimum value, or the average value of the plurality of digital signals may be generated. The data amount of the statistical data is less than the data amount of the plurality of sampling data. Moreover, the processing unit102may further perform other types of data statistics with respect to the digital signals acquired by sampling in the communication period, as long as the information carried by the plurality of sampling data can be reflected. When the communication period is reached, the transmission unit103transmits the statistical data statisticized by the processing unit102to the PLC which communicates with the data converter10. As a result, the data amount which the data converter10transmits to the PLC is reduced.

In the present embodiment, the data converter10performs sampling multiple times in one communication period, statisticizes the sampled data, and transmits the statisticized statistical data to the PLC. As a result, when the data converter10and the PLC communicate with each other through a bus, the requirement for the bus communication rate can be reduced, and it is possible to combine a means of a high sampling density with a low-cost bus. At the same time, the PLC does not have to process a large amount of information, which leaves the PLC with more processing time and shortens the control period. Also, when using the data converter10, the user can directly acquire the useful information which has been refined, which improves the convenience in use.

FIG. 3is a schematic view of the content of signals transmitted to the PLC by the data converter10according to Embodiment 1 of the invention. As shown inFIG. 3, assuming that the communication period is 10 ms, sampling may be performed up to one hundred times in each communication period. In one communication period, the sampling unit101performs sampling one hundred times with respect to the data detected by the sensor to acquire data Data 1 to Data 100. The processing unit102performs data statistics with respect to the sampling data of the one hundred times. For example, statistical information such as a maximum value MAX, a minimum value MIN, and an average value Average of the sampling data of the one hundred times is generated, and generally, it takes about five statistical data to respond to the representative information of the sampling data. The transmission unit103transmits about five statistical data statistically acquired by the processing unit102to the PLC.

It should be noted that the above merely schematically describes the statistical data by using the maximum value, the minimum value, and the average value as examples, and the invention is not limited thereto. For example, other statistical values such as the variance may also be used, and the specific types of statistics may also be determined according to the actual situation.

In another implementation of the present embodiment, the data converter10may further include a setting unit104, as shown inFIG. 2. The setting unit104sets the type of the statistical data based on the control information of the PLC.

For example, the setting unit104sets the type of the data statistics to be performed by the processing unit102based on the control information of the PLC. For example, the type of data statistics is set as information such as the average value, the maximum value, the minimum value, etc. of the plurality of sampling data in one communication period.

In the present embodiment, the type of the statistical data to be fed back to the PLC is set by the setting unit104, and the user can target and select the information to be fed back by the data converter10according to the actual situation to more flexibly grasp the useful information.

As can be seen from the above embodiment, the data converter performs sampling multiple times with respect to the data detected by the sensor in one communication period. The statistical data are acquired by statisticizing the plurality of sampling data. When the communication period is reached, the statistical data are transmitted to the PLC. As a result, not only is the control accuracy improved, but at the same time, voluntary data analysis is performed by the data converter, which reduces the data transmission amount of the bus, reduces the load on the main control unit, and makes the user's use convenient.

Embodiment 2 of the invention provides a signal transmission method for use in a data converter which communicates with a PLC.FIG. 4is a schematic flowchart of a method for transmitting signals to the PLC. As shown inFIG. 4, the method includes: a step201of performing, by the data converter, sampling multiple times with respect to data detected by the sensor in one communication period of communication with the PLC; a step202of acquiring, by the data converter, statistical data by statisticizing a plurality of sampling data in the communication period; and a step203of transmitting, by the data converter, the statistical data to the corresponding PLC when the communication period is reached.

In step202, when the data converter statisticizes the plurality of sampling data in one communication period, the data amount of the statistically acquired statistical data is less than the data amount of the plurality of sampling data.

In step202, when the data converter statisticizes the plurality of sampling data in one communication period, the type of the statistical data may include at least one or more of the maximum value, the minimum value, and the average value of the plurality of sampling data, but the invention is not limited thereto and may, for example, also include other statistical values.

In the present embodiment, sampling is performed multiple times with respect to the data detected by the sensor in one communication period, data statistics are performed on the plurality of sampling data, and the statistical data are transmitted to the corresponding PLC, which can improve the sampling density of the data converter to improve the control accuracy, and at the same time, reduce the data transmission amount, reduce the load on the controller such as the PLC, and make the user's use convenient.

In an implementation of the present embodiment, as shown inFIG. 4, the method further includes: a step204of setting, by the data converter, the type of the statistical data based on the control information of the PLC.

In the present embodiment, the data converter sets the type of the statistical data to be fed back to the PLC based on the control information of the PLC, and the user can target and select the information to be fed back by the data converter according to the actual situation to more flexibly grasp the useful information.

Embodiment 3 of the invention provides a signal transmission system which may include the data converter described in Embodiment 1.

FIG. 5is a schematic configuration view of a signal transmission system according to an embodiment of the invention. As shown inFIG. 5, a signal transmission system3may include a data converter31and a PLC32. The data converter31communicates with the PLC32, and the data converter31performs sampling multiple times with respect to data detected by a sensor in one communication period of communication with the PLC32, acquires statistical data by statisticizing a plurality of sampling data in the communication period, and transmits the statistical data to the PLC32when the communication period is reached. The PLC32receives the statistical data transmitted by the data converter31.

The data converter31and the PLC32may be directly connected through a circuit (e.g., connected through a bus), and through such connection, high-speed and highly reliable data transmission can be performed. Alternatively, the data converter31and the PLC32may be network-connected through a gateway to perform remote data transmission.

In an implementation of the present embodiment, as shown inFIG. 5, the signal transmission system3may further include a sensor33, and the sensor33performs data detection and, for example, converts data such as temperature, weight, tension, etc. into a voltage or a current signal.

In the present embodiment, one or more functional blocks described in the drawings and/or one or more combinations of the functional blocks may be implemented by general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), other programmable logic devices, discrete gates, or transistor logic devices, discrete hardware components, or any other suitable combinations to perform the functions described in the invention. The one or more functional blocks described in the drawings and/or one or more combinations of the functional blocks may also be implemented by combinations of computer devices. For example, a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors communicating with the DSP, or any other such configurations may be included.

The above apparatus and method of the invention are implemented by hardware and may also be implemented by combining software with hardware. The invention relates to such a computer-readable program, and when the program is executed by a logic component, the logic component is caused to implement the apparatus or component parts described above, or the logic component is caused to implement the various methods or processes described above. The invention also relates to a storage medium for storing the program described above, such as a hard disk, a magnetic disk, a CD, a DVD, a flash memory, etc.

Although the invention has been described by combining specific embodiments, it is clear to those skilled in the art that any of these descriptions is illustrative and does not limit the protection scope of the invention. Those skilled in the art may make various modifications and corrections to the invention based on the spirit and principle of the invention, and these modifications and corrections also fall within the scope of the invention.

INDUSTRIAL APPLICABILITY

A data converter, a signal transmission method, and a signal transmission system for transmitting a signal to a programmable logic controller are provided.