Data acquisition method and device, computer storage medium and electronic equipment
By monitoring the inverter clock signal in the logistics conveyor equipment and sending an analog signal alternately, the AS-I bus is time-consuming when transmitting multiple analog data, and achieves more efficient data collection.
Patent Information
- Application Number
- CN202411313609.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2025-01-21
AI Technical Summary
When the AS-I bus in the logistics conveying equipment periodically transmits data, it can only transmit at most two analog data at a time, resulting in non-periodic data transmission when collecting four analog data, which takes a long time and is difficult to meet user needs. .
By monitoring the clock signal in the frequency converter, the clock signal includes a first state value and a second state value, and alternately sends two sets of analog signals to the controller to implement periodic transformation based on the clock signal, completing within two clock signal cycles. The analog signal is sent.
It realizes the use of periodic transmission without the need for the controller to send requests, which improves the efficiency of data collection and shortens the data collection time.
Smart Images

Figure CN119341525A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of data processing technology, and in particular to a data acquisition method, device, computer storage medium and electronic device. Background Art
[0002] Logistics conveying equipment can be controlled by a controller and driven by multiple inverters. The controller and multiple inverters can communicate through the AS-I bus, which is a bus network for bidirectional information exchange between the controller and sensors / actuators. The controller needs to collect four types of analog data from each inverter, including the current, voltage, speed and temperature of each inverter, in order to monitor the operation of each inverter based on the four types of analog data obtained.
[0003] At present, when the AS-I bus in logistics transportation equipment transmits data periodically, it can only transmit two analog data at a time. If four analog data need to be collected, the controller needs to send a data collection request to the frequency converter, and the frequency converter can transmit the analog data to the controller, that is, non-periodic data transmission. However, the use of non-periodic data transmission will cause data collection to take a long time and it is difficult to meet user needs. Summary of the invention
[0004] In view of this, embodiments of the present invention provide a data collection method, device, computer storage medium and electronic device to at least partially solve the above problems.
[0005] According to a first aspect of an embodiment of the present invention, a data acquisition method is provided, which is applied to a frequency converter in logistics conveying equipment. The logistics conveying equipment includes a controller and a frequency converter. The method of this embodiment includes: monitoring a clock signal in the frequency converter, the clock signal including a first state value and a second state value; if the clock signal is the first state value, sending a first analog signal and a second analog signal to the controller; if the clock signal is the second state value, sending a third analog signal and a fourth analog signal to the controller, wherein the first analog signal, the second analog signal, the third analog signal and the fourth analog signal respectively contain different operating status information of the frequency converter.
[0006] According to a second aspect of an embodiment of the present invention, there is provided a data acquisition method, which is applied to a controller in a logistics conveying equipment, wherein the logistics conveying equipment includes a controller and a frequency converter, and the frequency converter transmits a signal to the controller by a method as claimed in claim 3 or 4, and the method includes: receiving an analog signal sent by the frequency converter, the analog signal including a first analog signal, a second analog signal, a third analog signal and a fourth analog signal; determining a target numerical offset mode for the analog signal from a data offset mode according to signal transmission channel information corresponding to the analog signal and the positive or negative nature of the analog signal, the numerical offset mode including a numerical negative offset processing and a numerical positive offset processing; processing the analog signal according to the target numerical offset mode to obtain operating status information of the frequency converter.
[0007] According to a third aspect of an embodiment of the present invention, a data acquisition device is provided, which is applied to a frequency converter in logistics conveying equipment. The logistics conveying equipment includes a controller and a frequency converter. The device of this embodiment includes a monitoring module, a first sending module and a second sending module: wherein the monitoring module is used to monitor the clock signal in the frequency converter, and the clock signal includes a first state value and a second state value; the first sending module is used to send a first analog signal and a second analog signal to the controller if the clock signal is a first state value; the second sending module is used to send a third analog signal and a fourth analog signal to the controller if the clock signal is a second state value, wherein the first analog signal, the second analog signal, the third analog signal and the fourth analog signal respectively contain different operating status information of the frequency converter.
[0008] According to the fourth aspect of the embodiment of the present invention, there is provided a data acquisition device, which is applied to a controller in a logistics conveying device, wherein the logistics conveying device includes a controller and a frequency converter, and the frequency converter transmits a signal to the controller by the method of the first aspect. The device of this embodiment includes a receiving module, a judging module and a data offset module, wherein the receiving module is used to receive an analog signal sent by the frequency converter, and the analog signal includes a first analog signal, a second analog signal, a third analog signal and a fourth analog signal; the judging module is used to determine a target numerical offset mode for the analog signal from a data offset mode according to the signal transmission channel information corresponding to the analog signal and the positive and negative nature of the analog signal, and the numerical offset mode includes a numerical negative offset processing and a numerical positive offset processing; the data offset module is used to process the analog signal according to the target numerical offset mode to obtain the operating status information of the frequency converter.
[0009] According to the fifth aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the method of the second aspect.
[0010] According to a sixth aspect of an embodiment of the present invention, there is provided a computer storage medium on which a computer program is stored. When the program is executed by a processor, the method of the second aspect is implemented.
[0011] In the scheme of the embodiment of the present invention, by monitoring the clock signal in the frequency converter, when the clock signal is a first state value, the first analog signal and the second analog signal are sent to the controller; when the clock signal is a second state value, the third analog signal and the fourth analog signal are sent to the controller, thereby realizing periodic transformation based on the clock signal, and alternately sending two groups of analog signals to the controller, so that a complete analog signal can be sent within two clock signal cycles, and compared with non-periodic data transmission, the transmission method of the embodiment of the present invention still adopts a periodic transmission method, without the need for the controller to send a request, and has higher transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the embodiments of the present invention 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 some embodiments recorded in the embodiments of the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0013] Figure 1A A schematic diagram of an application scenario of a data collection method according to an embodiment of the present invention;
[0014] Figure 1B is a structural block diagram of an exemplary frequency converter according to an embodiment of the present invention;
[0015] Figure 2 A flow chart of a data collection method according to an exemplary embodiment of the present invention;
[0016] Figure 3 A schematic diagram of a flow chart of a data collection method according to another embodiment of the present invention;
[0017] Figure 4 is a structural block diagram of a data acquisition device according to an exemplary embodiment of the present invention;
[0018] Figure 5 is a structural block diagram of a data acquisition device according to another embodiment of the present invention;
[0019] Figure 6 FIG. 4 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present invention.
[0020] List of reference numerals:
[0021] 10. Logistics transportation equipment; 101. Controller; 102. Frequency converter;
[0022] 1021, a first numerical offset unit; 1022, a second numerical offset unit; 1023, a third numerical offset unit; 1024, a fourth numerical offset unit; 1025, a first judgment unit; 1026, a second judgment unit; 1027, a clock signal generating module;
[0023] S202, monitoring the clock signal in the frequency converter;
[0024] S204, if the clock signal is a first state value, sending a first analog quantity signal and a second analog quantity signal to the controller;
[0025] S206: If the clock signal is in the second state value, sending a third analog quantity signal and a fourth analog quantity signal to the controller;
[0026] S302, receiving the analog signal sent by the frequency converter;
[0027] S304, determining a target value offset mode for the analog signal from the data offset mode according to the signal transmission channel information corresponding to the analog signal and the positive and negative properties of the analog signal;
[0028] S306, processing the analog signal according to the target value offset method to obtain the operating status information of the inverter;
[0029] 400, data acquisition device; 402, monitoring module; 404, first sending module; 406, second sending module;
[0030] 500, data acquisition device; 502, receiving module; 504, judging module; 506, data offset module.
[0031] 602, processor; 604, communication interface; 606, memory; 608, communication bus; 610, program. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be described clearly and in detail below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in the field based on the embodiments in the embodiments of the present invention should fall within the scope of protection of the embodiments of the present invention.
[0033] The specific implementation of the embodiment of the present invention is further described below in conjunction with the accompanying drawings of the embodiment of the present invention.
[0034] For ease of understanding, before describing in detail the specific embodiments of the present invention, an exemplary description is first given of the application scenarios of the data acquisition method, device, computer storage medium, and electronic device of the present invention.
[0035] Reference Figure 1A The data acquisition method of the embodiment of the present invention is applied to the controller 101 and the frequency converter 102 in the logistics conveying equipment 10. The logistics conveying equipment 10 may include a controller 101 and multiple frequency converters 102. The controller 101 is used to control the logistics conveying equipment as a whole. The multiple frequency converters 102 are responsible for driving the conveyor belt in the logistics conveying equipment. The controller 101 and each frequency converter 102 communicate through the AS-I bus. AS-I is a bus network for bidirectional information exchange between the controller and the sensor / actuator. The controller 101 can collect four types of analog data from each frequency converter 102, including the motor current, DC bus voltage, motor speed and motor temperature of each frequency converter 102, so as to monitor the operation of each frequency converter 102 according to the four types of analog data obtained.
[0036] At present, when the AS-I bus in the logistics transportation equipment transmits data periodically, at most two analog data can be transmitted each time, that is, the frequency converter 102 can periodically transmit two analog data to the controller 101. However, if four analog data need to be collected, it is necessary to send a data collection request to the frequency converter 102 through the controller 101, and the frequency converter 102 can transmit analog data to the controller 101, that is, non-periodic data transmission, and the use of non-periodic data transmission will cause data collection to take a long time, which is difficult to meet user needs. In view of this, the embodiment of the present invention provides a data collection method, device, computer storage medium and electronic device to at least partially solve the above problems.
[0037] Figure 2 The following is a flow chart of a data collection method according to an exemplary embodiment of the present invention. As shown in the figure, this embodiment mainly includes the following steps:
[0038] S202, monitor the clock signal in the inverter.
[0039] The data acquisition method of this embodiment is applied to the frequency converter in the logistics conveying equipment. The frequency converter is provided with a hardware module that can generate a clock signal, and the clock signal output by the hardware module is monitored, wherein the clock signal includes a first state value and a second state value, and the first state value and the second state value of the clock signal are different. For example, the first state value of the clock signal can be 0, and the second state value can be 1; or the first state value of the clock signal can be 1, and the second state value can be 0, and this embodiment does not limit this. Here, the transformation of the first state value and the second state value of the clock signal represents the transformation of the clock cycle.
[0040] S204: If the clock signal is in the first state value, send the first analog signal and the second analog signal to the controller.
[0041] Exemplarily, when the clock signal is monitored to be a first state value, for example, the first state value of the clock signal is 0, the inverter sends a first analog signal and a second analog signal to the controller, and the first analog signal and the second analog signal respectively contain different operating status information of the inverter. The operating status information of the inverter may include the motor current, DC bus voltage, motor speed and motor temperature of the inverter. For example, the first analog signal may include any one of the motor current, DC bus voltage, motor speed and motor temperature. Similarly, the second analog signal may also include any one of the motor current, DC bus voltage, motor speed and motor temperature, but the operating status information contained in the first analog signal and the second analog signal is not repeated.
[0042] S206: If the clock signal is in the second state value, send a third analog signal and a fourth analog signal to the controller.
[0043] Exemplarily, when the clock signal is monitored to be a second state value, for example, the second state value of the clock signal is 1, the frequency converter sends a third analog signal and a fourth analog signal to the controller, and the third analog signal and the third analog signal respectively contain different operating state information of the frequency converter, and the first analog signal, the second analog signal, the third analog signal and the fourth analog signal respectively contain different operating state information of the frequency converter. It can be understood that the third analog signal can contain any one of the motor current, the DC bus voltage, the motor speed and the motor temperature, and similarly, the fourth analog signal can also contain any one of the motor current, the DC bus voltage, the motor speed and the motor temperature, but the operating state information contained in the first analog signal, the second analog signal, the third analog signal and the fourth analog signal is not repeated.
[0044] This embodiment monitors the clock signal in the frequency converter, and when the clock signal is a first state value, sends the first analog signal and the second analog signal to the controller; when the clock signal is a second state value, sends the third analog signal and the fourth analog signal to the controller, thereby realizing periodic transformation based on the clock signal, and alternately sending two groups of analog signals to the controller, so that a complete analog signal can be sent within two clock signal cycles; and compared with non-periodic data transmission, the transmission method of this embodiment still adopts a periodic transmission method, without the need for the controller to send a request, and has higher transmission efficiency.
[0045] In some optional embodiments, a first signal transmission channel and a second signal transmission channel are arranged between the controller and the frequency converter, and sending the first analog signal and the second analog signal to the controller includes: sending the first analog signal to the controller through the first signal transmission channel; sending the second analog signal to the controller through the second signal transmission channel; wherein, sending the third analog signal and the fourth analog signal to the controller includes: sending the third analog signal to the controller through the first signal transmission channel; sending the fourth analog signal to the controller through the second signal transmission channel.
[0046] The values of the first analog signal and the third analog signal have different positive and negative values, and the values of the second analog signal and the fourth analog signal have different positive and negative values.
[0047] Exemplarily, a first signal transmission channel and a second signal transmission channel are provided between the controller and the frequency converter, and each signal transmission channel can transmit an analog signal in a data transmission cycle. Therefore, when the clock signal is a first state value, the frequency converter can send a first analog signal to the controller through the first signal transmission channel, and send a second analog signal to the controller through the second signal transmission channel; when the clock signal is a second state value, the frequency converter can send a third analog signal to the controller through the first signal transmission channel, and send a fourth analog signal to the controller through the second signal transmission channel. In addition, the values of the analog signals transmitted twice by each signal transmission channel are a positive number and a negative number, respectively, that is, the positive and negative values of the first analog signal and the third analog signal are different, and the positive and negative values of the second analog signal and the fourth analog signal are different.
[0048] In this embodiment, a first signal transmission channel and a second signal transmission channel are set, the first analog signal and the third analog signal are transmitted through the first signal transmission channel, the second analog signal and the fourth analog signal are transmitted through the second signal transmission channel, and the positive and negative values of the first analog signal and the third analog signal are set to be different, and the positive and negative values of the second analog signal and the fourth analog signal are set to be different, so that after receiving the four analog signals, the controller can distinguish the four analog signals by the positive and negative values of the analog signals and the information of the corresponding signal transmission channels.
[0049] In some optional embodiments, the data acquisition method also includes: obtaining operating status information of the inverter, the operating status information includes motor speed, motor current, motor temperature and voltage, and the operating status information is a percentage value with positive and negative properties; performing numerical negative offset processing on the motor speed and motor temperature respectively to obtain a first analog signal corresponding to the motor speed and a second analog signal corresponding to the motor temperature, and the values of the first analog signal and the second analog signal are both negative values; performing numerical positive offset processing on the motor current and voltage respectively to obtain a third analog signal corresponding to the motor current and a fourth analog signal corresponding to the voltage, and the values of the third analog signal and the fourth analog signal are both positive values.
[0050] Exemplarily, the operating status information output by the inverter can be a percentage value with positive and negative values. For example, the numerical range of the motor speed can be [-100%, 100%], the numerical range of the motor current can be [0, 100%], the numerical range of the motor temperature can be [-100%, 100%], and the numerical range of the voltage (DC bus voltage) can be [0, 100%].
[0051] According to the positive or negative nature of the operating status information output by the frequency converter, the motor speed and the motor temperature are respectively subjected to numerical negative offset processing, and the offset value is 100%, so as to obtain a first analog signal corresponding to the motor speed and a second analog signal corresponding to the motor temperature. The numerical range of the first analog signal can be [-200%, 0], and the numerical range of the second analog signal can be [-200%, 0], that is, the numerical values of the first analog signal and the second analog signal are both negative values.
[0052] Furthermore, numerical positive offset processing is performed on the motor current and voltage respectively, and the offset values of the numerical positive offset processing and the numerical negative offset processing are the same, that is, the offset value is 100%, so as to obtain a third analog signal corresponding to the motor current and a fourth analog signal corresponding to the voltage. The numerical range of the third analog signal can be [100%, 200%], and the numerical range of the fourth analog signal can be [100%, 200%], that is, the numerical values of the third analog signal and the fourth analog signal are both positive values.
[0053] It should be understood that in this embodiment, the correspondence between the motor speed and the first analog signal, the correspondence between the motor temperature and the second analog signal, the correspondence between the motor current and the third analog signal, and the correspondence between the voltage and the fourth analog signal are only a feasible implementation method of this embodiment. In this embodiment, it is only necessary to ensure that the first analog signal and the third analog signal correspond to one of the motor speed and the motor current respectively, and the second analog signal and the fourth analog signal correspond to one of the motor temperature and the voltage respectively. It is not limited to the above-mentioned correspondence.
[0054] In this embodiment, according to the positive and negative characteristics of the operating status information output by the frequency converter, numerical positive offset processing or numerical negative offset processing is performed on the operating status information of the frequency converter, so that the positive and negative values of the numerical values of the first analog signal and the third analog signal obtained are different, and the positive and negative values of the second analog signal and the fourth analog signal are different. After receiving the four analog signals, the controller can distinguish the four analog signals by the positive and negative values of the analog signals and the information of the corresponding signal transmission channels.
[0055] In some optional embodiments, obtaining the operating status information of the inverter includes: obtaining the operating status data of the inverter, the operating status data including the motor speed value, the motor current value, the motor temperature value and the voltage value; and calibrating the operating status data respectively to obtain the operating status information of the inverter.
[0056] Exemplarily, the operating status data of the frequency converter includes a motor speed value, a motor current value, a motor temperature value and a voltage value, wherein the unit of the motor speed value is rpm, the unit of the motor current value is A, the unit of the motor temperature value is °C, and the unit of the voltage value is V. The operating status data can be calibrated separately, that is, the motor speed value, the motor current value, the motor temperature value and the voltage value are all converted into percentage values, and the numerical range of the calibrated motor speed is [-100%, 100%], the numerical range of the motor current is [0, 100%], the numerical range of the motor temperature is [-100%, 100%], and the numerical range of the voltage is [0, 100%], so as to obtain the operating status information of the frequency converter.
[0057] In this embodiment, the operating status data of the frequency converter is calibrated so that the operating status information output by the frequency converter has certain positive and negative characteristics, which facilitates the numerical positive offset processing or numerical negative offset processing of the operating status information to obtain analog signals with different positive and negative values. After receiving the four analog signals, the controller can distinguish the four analog signals by the positive and negative values of the analog signals and the information of the corresponding signal transmission channels.
[0058] Reference Figure 1B , shows a structural block diagram of an exemplary frequency converter. The exemplary frequency converter 102 of this embodiment may include a first numerical offset unit 1021, a second numerical offset unit 1022, a third numerical offset unit 1023, a fourth numerical offset unit 1024, a first judgment unit 1025, a second judgment unit 1026 and a clock signal generating module 1027.
[0059] Among them, the first numerical offset unit 1021 is used to perform numerical negative offset processing on the motor speed and output a first analog signal; the second numerical offset unit 1022 is used to perform numerical positive offset processing on the motor current and output a second analog signal; the third numerical offset unit 1023 is used to perform numerical negative offset processing on the motor temperature and output a third analog signal; the fourth numerical offset unit 1024 is used to perform numerical positive offset processing on the voltage and output a fourth analog signal.
[0060] The first determination unit 1025 is used to receive the first analog signal and the third analog signal, and determine to output the first analog signal or the third analog signal according to the clock signal.
[0061] The second determination unit 1026 is used to receive the second analog signal and the fourth analog signal, and determine to output the second analog signal or the fourth analog signal according to the clock signal.
[0062] The clock signal generating module 1027 is used to generate a clock signal and send the clock signal to the first judging unit 1025 and the second judging unit 1026 .
[0063] Reference Figure 3 , shows a step flow chart of a data acquisition method according to another exemplary embodiment of the present application. The data acquisition method of this embodiment is applied to a controller in a logistics conveying equipment, and the frequency converter transmits a signal to the controller through the method of the above embodiment.
[0064] This embodiment mainly includes the following steps:
[0065] S302, receiving the analog signal sent by the inverter.
[0066] The analog quantity signal includes a first analog quantity signal, a second analog quantity signal, a third analog quantity signal and a fourth analog quantity signal.
[0067] S304: Determine a target value offset mode for the analog signal from the data offset mode according to the signal transmission channel information corresponding to the analog signal and the positive or negative property of the analog signal.
[0068] The numerical offset method includes numerical negative offset processing and numerical positive offset processing. The offset values of the numerical positive offset processing and the numerical negative offset processing are the same, that is, the offset value is 100%.
[0069] In this embodiment, the analog signal can be determined to be one of the first analog signal, the second analog signal, the third analog signal and the fourth analog signal based on the signal transmission channel information corresponding to each analog signal and the positive or negative nature of the analog signal, and then the target numerical offset method for the analog signal can be determined based on the correspondence between each analog signal and different data offset methods.
[0070] Furthermore, according to the signal transmission channel information corresponding to the analog signal and the positive and negative nature of the analog signal, the specific implementation of determining the target value offset mode of the analog signal from the data offset mode is as follows:
[0071] If the signal transmission channel information corresponding to the analog signal is the first signal transmission channel, and the value of the analog signal is a negative value, the analog signal is determined to be the first analog signal, and the target value offset mode of the analog signal is a positive value offset process. That is, after the analog signal is determined to be the first analog signal in the controller, the target value offset mode is determined to be a positive value offset process, so that the value of the first analog signal can be restored to the operating state information, such as the motor speed, by performing a positive value offset process on the first analog signal, thereby completing the data acquisition of the controller.
[0072] If the signal transmission channel information corresponding to the analog signal is the first signal transmission channel, and the value of the analog signal is a positive value, the analog signal is determined to be the third analog signal, and the target value offset mode of the analog signal is a negative value offset process. That is, after the analog signal is determined to be the third analog signal in the controller, the target value offset mode is determined to be a negative value offset process, so that the value of the third analog signal can be restored to the operating state information, such as the motor current, by performing a negative value offset process on the third analog signal, thereby completing the data acquisition of the controller.
[0073] If the signal transmission channel information corresponding to the analog signal is the second signal transmission channel, and the value of the analog signal is a negative value, the analog signal is determined to be the second analog signal, and the target value offset mode of the analog signal is a positive value offset process. That is, after the analog signal is determined to be the second analog signal in the controller, the target value offset mode is determined to be a positive value offset process, so that the value of the second analog signal can be restored to the operating state information, such as the motor temperature, by performing a positive value offset process on the second analog signal, thereby completing the data acquisition of the controller.
[0074] If the signal transmission channel information corresponding to the analog signal is the second signal transmission channel, and the value of the analog signal is a positive value, the analog signal is determined to be the fourth analog signal, and the target value offset mode of the analog signal is a negative value offset process. That is, after the analog signal is determined to be the fourth analog signal in the controller, the target value offset mode is determined to be a positive value offset process, so that the value of the fourth analog signal can be restored to the operating state information, such as voltage, by performing a negative value offset process on the fourth analog signal, thereby completing the data acquisition of the controller.
[0075] S306. Process the analog signal according to the target value offset method to obtain the operating status information of the inverter.
[0076] Exemplarily, the analog signal is processed according to a target value offset method corresponding to the analog signal, and the value of the analog signal is restored to the operating status information of the inverter.
[0077] In this embodiment, after the controller receives the analog signal sent by the frequency converter, it determines the target numerical offset method for the analog signal from the data offset method based on the signal transmission channel information corresponding to the analog signal and the positive and negative nature of the analog signal, and processes the analog signal according to the target numerical offset method, and restores the value of the analog signal to the operating status information of the frequency converter, so that the subsequent controller can monitor the operating status of the frequency converter based on the operating status information.
[0078] In some optional embodiments, the logistics conveying equipment includes a plurality of frequency converters, and the data collection method further includes: the controller receives analog signals from the plurality of frequency converters in a polling manner.
[0079] Exemplarily, the logistics conveying equipment includes multiple frequency converters, and the controller can collect analog signals from the multiple frequency converters by polling, thereby avoiding collecting analog signals from multiple frequency converters at the same time. The controller needs to process too many analog signals, resulting in problems such as failure to process in a timely manner or errors in processing results.
[0080] Figure 4 4 is a structural block diagram of a data acquisition device according to an embodiment of the present invention.
[0081] As shown in the figure, the data acquisition device of this embodiment is applied to a frequency converter in a logistics conveying equipment, and the logistics conveying equipment includes a controller and a frequency converter.
[0082] The data acquisition device 400 of this embodiment includes a monitoring module 402, a first sending module 404 and a second sending module 406: wherein the monitoring module 402 is used to monitor the clock signal in the frequency converter, and the clock signal includes a first state value and a second state value; the first sending module 404 is used to send the first analog signal and the second analog signal to the controller if the clock signal is the first state value; the second sending module 406 is used to send the third analog signal and the fourth analog signal to the controller if the clock signal is the second state value, wherein the first analog signal, the second analog signal, the third analog signal and the fourth analog signal respectively contain different operating state information of the frequency converter.
[0083] In some optional embodiments, a first signal transmission channel and a second signal transmission channel are arranged between the controller and the frequency converter, and the first sending module 404 is further used to: send a first analog signal to the controller through the first signal transmission channel; send a second analog signal to the controller through the second signal transmission channel; the second sending module 406 is further used to: send a third analog signal to the controller through the first signal transmission channel; send a fourth analog signal to the controller through the second signal transmission channel; the positive and negative values of the first analog signal and the third analog signal are different, and the positive and negative values of the second analog signal and the fourth analog signal are different.
[0084] In some optional embodiments, the device of this embodiment also includes a preprocessing module, which is used to: obtain operating status information of the inverter, the operating status information includes motor speed, motor current, motor temperature and voltage, and the operating status information is a percentage value with positive and negative properties; perform numerical negative offset processing on the motor speed and motor temperature respectively to obtain a first analog signal corresponding to the motor speed and a second analog signal corresponding to the motor temperature, and the values of the first analog signal and the second analog signal are both negative values; perform numerical positive offset processing on the motor current and voltage respectively to obtain a third analog signal corresponding to the motor current and a fourth analog signal corresponding to the voltage, and the values of the third analog signal and the fourth analog signal are both positive values.
[0085] In some optional embodiments, the preprocessing module is also used to: obtain the operating status data of the inverter, the operating status data including the motor speed value, motor current value, motor temperature value and voltage value; calibrate the operating status data respectively to obtain the operating status information of the inverter.
[0086] In addition, the data acquisition device of the embodiment of the present invention can also be used to implement other steps in the aforementioned data acquisition method embodiment, and has the beneficial effects of the corresponding method step embodiments, which will not be repeated here.
[0087] Figure 54 is a structural block diagram of a data acquisition device according to an embodiment of the present invention.
[0088] As shown in the figure, the data acquisition device of this embodiment is applied to a controller in a logistics conveying equipment. The logistics conveying equipment includes a controller and a frequency converter. The frequency converter transmits a signal to the controller through the method of the above embodiment.
[0089] The data acquisition device 500 of this embodiment includes a receiving module 502, a judgment module 504 and a data offset module 506, wherein the receiving module 502 is used to receive the analog signal sent by the inverter, and the analog signal includes a first analog signal, a second analog signal, a third analog signal and a fourth analog signal; the judgment module 504 is used to determine the target numerical offset mode for the analog signal from the data offset mode according to the signal transmission channel information corresponding to the analog signal and the positive and negative nature of the analog signal, and the numerical offset mode includes a numerical negative offset processing and a numerical positive offset processing; the data offset module 506 is used to process the analog signal according to the target numerical offset mode to obtain the operating status information of the inverter.
[0090] In some optional embodiments, the judgment module 504 is also used for: if the signal transmission channel information corresponding to the analog signal is the first signal transmission channel, and the numerical value of the analog signal is a negative value, then the analog signal is determined to be the first analog signal, and the target numerical value offset mode of the analog signal is a numerical positive offset processing; if the signal transmission channel information corresponding to the analog signal is the first signal transmission channel, and the numerical value of the analog signal is a positive value, then the analog signal is determined to be the third analog signal, and the target numerical value offset mode of the analog signal is a numerical negative offset processing; if the signal transmission channel information corresponding to the analog signal is the second signal transmission channel, and the numerical value of the analog signal is a negative value, then the analog signal is determined to be the second analog signal, and the target numerical value offset mode of the analog signal is a numerical positive offset processing; if the signal transmission channel information corresponding to the analog signal is the second signal transmission channel, and the numerical value of the analog signal is a positive value, then the analog signal is determined to be the fourth analog signal, and the target numerical value offset mode of the analog signal is a numerical negative offset processing.
[0091] In some optional embodiments, the logistics conveying equipment includes multiple frequency converters, and the receiving module is further used for: the controller receives analog signals from the multiple frequency converters in a polling manner.
[0092] In addition, the data acquisition device of the embodiment of the present invention can also be used to implement other steps in the aforementioned data acquisition method embodiment, and has the beneficial effects of the corresponding method step embodiments, which will not be repeated here.
[0093] Reference Figure 6, shows a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.
[0094] like Figure 6 As shown, the electronic device may include: a processor (processor) 602 for executing a program 610 , a communication interface (Communications Interface) 604 , a memory (memory) 606 , and a communication bus 608 .
[0095] in:
[0096] The processor, the communication interface, and the memory communicate with each other via a communication bus.
[0097] Communication interface, used to communicate with other electronic devices or servers.
[0098] The processor is used to execute the program, and specifically can execute the relevant steps in the above method embodiment.
[0099] Specifically, the program may include program codes including computer operation instructions.
[0100] The processor may be a CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0101] The memory is used to store programs. The memory may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
[0102] The program may include multiple computer instructions. Specifically, the program may enable a processor to execute operations corresponding to the data acquisition method described in any of the aforementioned method embodiments through the multiple computer instructions.
[0103] The specific implementation of each step in the program can refer to the corresponding description of the corresponding steps and units in the above method embodiment, and has corresponding beneficial effects, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above method embodiment, which will not be repeated here.
[0104] The embodiment of the present invention further provides a computer storage medium on which a computer program is stored, and when the program is executed by a processor, the method described in any of the above-mentioned multiple method embodiments is implemented. The computer storage medium includes, but is not limited to: a compact disc read-only memory (CD-ROM), a random access memory (RAM), a floppy disk, a hard disk or a magneto-optical disk, etc.
[0105] An embodiment of the present invention further provides a computer program product, including computer instructions, which instruct a computing device to execute operations corresponding to any one of the above-mentioned multiple method embodiments.
[0106] In addition, it should be noted that the user-related information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to sample data used to train the model, data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present invention are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant regulations and standards, and corresponding operation entrances are provided for users to choose to authorize or refuse.
[0107] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present invention can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present invention.
[0108] The above-mentioned method according to the embodiment of the present invention can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD-ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor or programmable or dedicated hardware (such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA)). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., a random access memory (RAM), a read-only memory (ROM), a flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the method shown here, the execution of the code converts the general-purpose computer into a dedicated computer for executing the method shown here.
[0109] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present invention.
[0110] The above implementation methods are only used to illustrate the embodiments of the present invention, and are not limitations of the embodiments of the present invention. Ordinary technicians in the relevant technical field may make various changes and modifications without departing from the spirit and scope of the embodiments of the present invention. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present invention. The patent protection scope of the embodiments of the present invention should be defined by the claims.
Claims
1. A data collection method, characterized in that: A frequency converter used in a logistics conveying device, wherein the logistics conveying device comprises a controller and the frequency converter, and the method comprises: Monitoring a clock signal in the frequency converter, wherein the clock signal includes a first state value and a second state value; If the clock signal is the first state value, sending a first analog quantity signal and a second analog quantity signal to the controller; If the clock signal is the second state value, a third analog signal and a fourth analog signal are sent to the controller, wherein the first analog signal, the second analog signal, the third analog signal and the fourth analog signal respectively contain different operating state information of the inverter.
2. The data collection method according to claim 1, characterized in that: A first signal transmission channel and a second signal transmission channel are provided between the controller and the frequency converter, and the sending of the first analog signal and the second analog signal to the controller includes: Sending a first analog signal to the controller through the first signal transmission channel; Sending a second analog signal to the controller through the second signal transmission channel; Wherein, sending the third analog quantity signal and the fourth analog quantity signal to the controller includes: Sending a third analog signal to the controller through the first signal transmission channel; A fourth analog signal is sent to the controller through the second signal transmission channel; the positive and negative values of the first analog signal and the third analog signal are different, and the positive and negative values of the second analog signal and the fourth analog signal are different.
3. The data collection method according to claim 2, characterized in that: The method further comprises: Acquire the operating status information of the inverter, wherein the operating status information includes the motor speed, motor current, motor temperature and voltage, and the operating status information is a percentage value with positive and negative values; Performing numerical negative offset processing on the motor speed and the motor temperature respectively to obtain a first analog signal corresponding to the motor speed and a second analog signal corresponding to the motor temperature, wherein the values of the first analog signal and the second analog signal are both negative values; The motor current and the voltage are respectively subjected to numerical positive offset processing to obtain a third analog signal corresponding to the motor current and a fourth analog signal corresponding to the voltage, wherein the values of the third analog signal and the fourth analog signal are both positive values.
4. The data collection method according to claim 3, characterized in that: The obtaining the operating status information of the inverter includes: Acquire the operating status data of the inverter, wherein the operating status data includes a motor speed value, a motor current value, a motor temperature value and a voltage value; The operating status data are calibrated respectively to obtain the operating status information of the frequency converter.
5. A data collection method, characterized in that: A controller used in a logistics conveying device, wherein the logistics conveying device comprises the controller and a frequency converter, wherein the frequency converter transmits a signal to the controller by the method according to claim 3 or 4, wherein the method comprises: receiving analog signals sent by the frequency converter, wherein the analog signals include the first analog signal, the second analog signal, the third analog signal and the fourth analog signal; According to the signal transmission channel information corresponding to the analog signal and the positive or negative nature of the analog signal, a target numerical offset mode for the analog signal is determined from a data offset mode, wherein the numerical offset mode includes a negative numerical offset processing and a positive numerical offset processing; The analog signal is processed according to the target value offset method to obtain the operating status information of the inverter.
6. The data collection method according to claim 5, characterized in that: Determining a target value offset mode for the analog signal from a data offset mode according to the signal transmission channel information corresponding to the analog signal and the positive or negative property of the analog signal includes: If the signal transmission channel information corresponding to the analog signal is the first signal transmission channel, and the value of the analog signal is a negative value, then the analog signal is determined to be the first analog signal, and the target value offset mode of the analog signal is a positive value offset processing; If the signal transmission channel information corresponding to the analog signal is the first signal transmission channel, and the value of the analog signal is a positive value, then the analog signal is determined to be a third analog signal, and the target value offset mode of the analog signal is a negative value offset processing; If the signal transmission channel information corresponding to the analog signal is the second signal transmission channel, and the value of the analog signal is a negative value, the analog signal is determined to be the second analog signal, and the target value offset mode of the analog signal is a positive value offset processing; If the signal transmission channel information corresponding to the analog signal is the second signal transmission channel, and the value of the analog signal is a positive value, the analog signal is determined to be a fourth analog signal, and the target value offset method of the analog signal is a negative value offset processing.
7. The data collection method according to claim 6, characterized in that: The logistics conveying equipment includes a plurality of the frequency converters, and the method further includes: The controller receives the analog signal from the plurality of frequency converters in a polling manner.
8. A data acquisition device, characterized in that: A frequency converter used in a logistics conveying device, the logistics conveying device includes a controller and the frequency converter, and the device includes: A monitoring module, used for monitoring a clock signal in the frequency converter, wherein the clock signal includes a first state value and a second state value; A first sending module, configured to send a first analog quantity signal and a second analog quantity signal to the controller if the clock signal is the first state value; The second sending module is used to send a third analog signal and a fourth analog signal to the controller if the clock signal is the second state value, wherein the first analog signal, the second analog signal, the third analog signal and the fourth analog signal respectively contain different operating state information of the inverter.
9. An electronic device, comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the method as described in any one of claims 5-7.
10. A computer storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method according to any one of claims 5 to 7.