Analog quantity control method and system thereof
By encapsulating analog quantity counting in the FB function block and using the control analog quantity calibration function block to convert analog quantity signals into PLC data, the problem of machine tools being unable to monitor analog quantity data in real time is solved, and detailed and comprehensive real-time monitoring of the workpiece production process is realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HARBIN SHIMADA BIG BIRD IND
- Filing Date
- 2023-12-25
- Publication Date
- 2026-04-10
AI Technical Summary
Existing production machine tools cannot monitor analog data in real time, resulting in an insufficient and incomplete understanding of the workpiece production process.
The analog signal counting is encapsulated in the FB function block. The analog signal is received through the counting function block and converted into PLC data by the control analog signal calibration function block, so as to realize the real-time monitoring of the analog signal.
It enables real-time monitoring of analog data, providing a more detailed and comprehensive understanding of the workpiece production process.
Smart Images

Figure CN118011944B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of programmable logic controller (PLC). BACKGROUND
[0002] In the field of power assembly cleaning machines, real-time data acquisition applications are becoming more and more widespread. With the automobile industry's increasing demand for complete and comprehensive production part traceability information, each production machine must have data tracking for the production information of each workpiece, such as workpiece pressure, temperature, and other control information. At this time, analog information data accounts for an increasingly large proportion. Previously, machine tool information was fed back in on-off quantity to determine whether it was qualified. Now, real-time monitoring of analog data is required to provide more detailed and comprehensive understanding of the production process of each workpiece. At this time, on-off quantity cannot be used to monitor analog data in real time. SUMMARY
[0003] The present application provides an analog control method and system, which solves the problem of real-time monitoring of analog data for each workpiece in existing production machines, and realizes processing of analog data to enable real-time monitoring of analog data.
[0004] To achieve the above-mentioned purpose, the present application provides the following solutions:
[0005] The present application provides an analog control method, which is as follows:
[0006] The analog quantity counter is encapsulated in an FB function block to obtain a counting function block.
[0007] The counting function block receives an analog signal and sends the analog signal to a control analog calibration function block.
[0008] The control analog calibration function block converts the analog signal into PLC data and sends it to a PLC system to calculate the actual value.
[0009] Further, there is a preferred embodiment, and the FB function block is a software module.
[0010] Further, there is a preferred embodiment, and the counting function block is used for counting processing of the analog signal.
[0011] Further, there is a preferred embodiment, and the control analog calibration function block sends the analog signal to the PLC system in the form of a single-precision real number.
[0012] Further, there is a preferred embodiment, and the specific method by which the PLC system calculates the actual value from the PLC data is as follows:
[0013] Subtracting the upper limit calibration of the control analog calibration function block sensor from the lower limit calibration of the control analog calibration function block sensor obtains variable 1;
[0014] Dividing the output value obtained by sending the PLC data to the PLC system by the variable 1 obtains variable 2;
[0015] Adding the lower limit calibration value of the control analog calibration function block sensor to the variable 2 obtains an actual value.
[0016] The analog quantity control method provided by the application can be realized by using computer software, and accordingly, the application further provides an analog quantity control system, which is:
[0017] A storage device for encapsulating analog quantity counting in an FB function block to obtain a counting function block;
[0018] A storage device for receiving an analog quantity signal by using the counting function block and sending the analog quantity signal to a control analog calibration function block;
[0019] A storage device for converting the analog quantity signal into PLC data by using the control analog calibration function block and sending the PLC data to a PLC system to calculate an actual value.
[0020] The application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to perform the analog quantity control method.
[0021] The application further provides a computer device, which comprises a memory and a processor, and the memory stores a computer program, and the processor executes the analog quantity control method when the processor executes the computer program stored in the memory.
[0022] The application has the following beneficial effects:
[0023] 1. The application provides an analog quantity control method, which encapsulates analog quantity counting in an FB function block to count analog quantity data, realizes quantization and statistical analysis of analog quantity signals, converts analog quantity signals into PLC data by using a control analog calibration function block, and finally sends the PLC data to a PLC system to calculate an actual value, so that workers can monitor analog quantity data in real time and more detailedly and comprehensively understand the production process of each workpiece.
[0024] The application is suitable for analog quantity data monitoring in the field of power assembly cleaning machines. BRIEF DESCRIPTION OF DRAWINGS
[0025] Figure 1is a schematic diagram of the control analog calibration function block according to the first embodiment;
[0026] Figure 2 is a diagram of reading analog values in single-precision real numbers according to the fourth embodiment;
[0027] Figure 3 is a code for PLC system to calculate PLC data according to the fifth embodiment.
[0028] wherein, Input-analog input value, HighLimit-upper limit calibration of sensor, LowLimit-lower limit calibration of sensor,
[0029] Polarity-polarity calibration, Output-actual value of analog. DETAILED DESCRIPTION
[0030] In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular architectures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known methods, devices, circuits, and
[0031] It is to be understood that the terminology "including", "comprising", "consisting" and "consisting essentially of" used in the specification and the appended claims, indicates the presence of the described features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0032] It is also to be understood that the terminology used in the present specification and the appended claims is for the purpose of describing the particular embodiments only and is not intended to be limiting. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
[0033] The specific embodiments of the present application will be further described with reference to the drawings and embodiments. The following embodiments will help those skilled in the art to further understand the present application, but do not limit the present application in any form. It should be noted that for those skilled in the art, without departing from the concept of the present application, a number of changes and improvements can be made, which are within the scope of protection of the present application.
[0034] Embodiment one. Referring to Figure 1 To illustrate this embodiment, the present embodiment provides an analog control method, wherein the control method is:
[0035] The analog quantity counter is encapsulated in the FB function block to obtain a counting function block;
[0036] The counting function block receives an analog signal and sends the analog signal to a control analog calibration function block;
[0037] The control analog calibration function block converts the analog signal into PLC data and sends it to a PLC system to calculate the actual value.
[0038] In actual application, the analog quantity counter is first encapsulated in an FB function block. When analog signals need to be collected, a control analog calibration function block is called. The control analog calibration function block converts the collected analog signals into PLC data and is also used for calibrating and adjusting the analog signals to ensure that the output analog data is accurate and reliable. Because the analog signals may be affected by environmental factors, equipment or sensors, etc., resulting in signal deviation or inaccuracy. The control analog calibration function block can adjust the analog signals to an accurate range through calibration operation to improve the accuracy of the data. At the same time, the control analog calibration function block can also provide the functions of saving and managing calibration parameters, so that the calibration parameters can be easily backed up, restored and managed. In this way, when re-calibration or equipment replacement is needed, the previous calibration parameters can be quickly restored, reducing the workload and time cost. The PLC data is sent to a PLC system to calculate the actual value, which allows workers to monitor the analog data in real time, so that the production process of each workpiece can be understood in more detail and more comprehensively.
[0039] In application, the counting function block and the control analog calibration function block are programmed by using the ST language of the R04 CPU model of the Mitsubishi R series PLC, which makes the program language concise. The R312B model motherboard is used to realize analog data transmission and communication of various hardware; and the R61P model power module is used to provide working power.
[0040] The embodiment provides an analog quantity control method. First, the analog quantity counter is encapsulated in an FB function block to count analog data, realize quantization and statistical analysis of the analog signal; then the control analog calibration function block is used to convert the analog signal into PLC data, which is finally sent to a PLC system to calculate the actual value, so that workers can monitor the analog data in real time and understand the production process of each workpiece in more detail and more comprehensively.
[0041] Embodiment two. The embodiment is an example of the FB function block in the analog quantity control method of embodiment one. The FB function block is a software module.
[0042] In actual application, the FB function block can be a software module or a hardware module.
[0043] Embodiment three. This embodiment is an example of the counting function block in the analog quantity control method of embodiment one, which is used for counting processing of the analog quantity signal.
[0044] In actual application, the counting function block is used for counting processing of the analog quantity signal, realizing quantization and statistical analysis of the analog quantity signal. Since the analog quantity data is usually continuously changed, the continuous analog quantity signal can be converted into discrete counting values through counting, facilitating data processing and analysis.
[0045] Embodiment four. Referring to Figure 2 This embodiment is an example of the transmission form of the analog quantity signal by the control analog calibration function block in the analog quantity control method of embodiment one.
[0046] The control analog calibration function block sends the analog quantity signal to the PLC system in the form of single-precision real number.
[0047] In actual application, as shown in Figure 2 The control analog calibration function block sends the analog quantity signal to the PLC system in the form of single-precision real number, so as to ensure that the output analog quantity data is accurate and reliable. Compared with other types of data, single-precision real number can provide higher data precision, which can represent more decimal places, so that the value of the analog quantity signal can be more accurately represented, improving the precision and accuracy of the data. At the same time, single-precision real number can represent a larger numerical range, which is very important for processing analog quantity signals. The numerical range of the analog quantity signal can be very wide, and the use of single-precision real number can ensure that there is no numerical overflow or truncation. Moreover, the PLC system usually uses digital signals for logical operation and control calculation. Sending the analog quantity signal to the PLC system in the form of single-precision real number can facilitate data processing and calculation, such as comparison, addition, subtraction, multiplication, and division operations.
[0048] Embodiment five. Referring to Figure 1 and Figure 3 This embodiment is an example of the specific method for calculating the actual value of the PLC data by the PLC system in the analog quantity control method of embodiment one.
[0049] The specific method for calculating the actual value of the PLC data by the PLC system is as follows:
[0050] Subtracting the upper limit calibration of the control analog calibration function block sensor from the lower limit calibration of the control analog calibration function block sensor, a variable 1 is obtained;
[0051] Dividing the output value obtained by sending the PLC data to the PLC system by the variable 1, a variable 2 is obtained;
[0052] Adding the lower limit calibration value of the control analog calibration function block sensor to the variable 2, an actual value is obtained.
[0053] In actual application, as shown in Figure 1 and Figure 3 According to the upper and lower limit values of the control analog calibration function block sensor, the PLC data is converted into an actual value, specifically: subtracting the lower limit calibration of the control analog calibration function block sensor from the upper limit calibration of the control analog calibration function block sensor, a variable 1 is obtained; dividing the output value obtained by sending the PLC data to the PLC system by the variable 1, a variable 2 is obtained; adding the lower limit calibration value of the control analog calibration function block sensor to the variable 2, an actual value is obtained. Using this actual value can provide real-time monitoring of analog data for workers, so that the production process of each workpiece can be understood in more detail and more comprehensively.
[0054] Embodiment six. The embodiment provides an analog control system, which is:
[0055] A storage device for encapsulating analog count in FB function block to obtain a count function block;
[0056] A storage device for receiving analog signals by the count function block and sending the analog signals to the storage device of the control analog calibration function block;
[0057] A storage device for converting the analog signals into PLC data by the control analog calibration function block and sending the PLC data to the PLC system to calculate an actual value.
[0058] Embodiment seven. The embodiment provides a computer readable storage medium, which stores a computer program, and the computer program is run by a processor to execute the analog control method of any one of embodiments one to five.
[0059] Embodiment eight. The embodiment provides a computer device, which includes a memory and a processor, and the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the analog control method of any one of embodiments one to five.
[0060] In addition, the terms "first", "second", etc. are used only for the purpose of description, and should not be construed as indicating or implying relative importance or a specific number of the technical features indicated. Therefore, the features defined with "first", "second" can explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "a plurality of" is at least two, such as two, three, etc., unless otherwise explicitly and specifically limited.
[0061] In the description of the present application, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" and the like means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In the present application, the illustrative description of the above terms is not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples. In addition, a person skilled in the art can combine and combine different embodiments or examples described in the present application and the features of different embodiments or examples without contradiction.
[0062] The above only describes the embodiments of the present application and does not limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the scope of the claims of the present application.
Claims
1. A method of analog control, characterized by, The method is: The analog quantity counting package is encapsulated in the FB software function block, and a counting function block is obtained; Analog quantity signals are received by the counting function block, and the analog quantity signals are sent to a control analog quantity calibration function block; The counting function block is used for counting processing of the analog quantity signals, and realizes quantization and statistical analysis of the analog quantity signals, specifically: continuous analog quantity signals are converted into discrete counting values by the counting function block; The control analog quantity calibration function block is used to convert the analog quantity signals into PLC data, and send the PLC data to a PLC system in the form of single-precision real numbers to calculate actual values; The specific method for the PLC system to calculate actual values from PLC data is: A variable 1 is obtained by subtracting the lower limit calibration of the control analog quantity calibration function block sensor from the upper limit calibration of the control analog quantity calibration function block sensor; A variable 2 is obtained by dividing the output value obtained by sending the PLC data to the PLC system by the variable 1; The actual value is obtained by adding the variable 2 to the lower limit calibration value of the control analog quantity calibration function block sensor.
2. Analog control system, characterized in that The system is realized based on the analog quantity control method of claim 1.
3. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is run by the processor to execute the analog quantity control method of claim 1.
4. A computer device, comprising: The device includes a memory and a processor, and the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the analog quantity control method of claim 1. The device includes a memory and a processor, and the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the analog quantity control method of claim 1.
Citation Information
Patent Citations
Distribution control system
CN103616065A