Method for PLC data recording

By using dynamic SD memory card partition to circulate PLC data in the photovoltaic glass production line, the problem of high cost of the QD81DL96 high-speed data recorder module is solved, and continuous data recording and efficient storage are realized, reducing production costs.

CN119942672APending Publication Date: 2025-05-06TUNGHSU TECH GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510089894.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-20
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

In the existing photovoltaic glass production lines, the QD81DL96 high-speed data recorder module has a long order cycle and high cost, which leads to huge production costs when applying large-scale production lines.

Method used

A method for PLC data recording is proposed, by obtaining multi-dimensional photovoltaic glass production line data from multiple sampling points, converting and verifying data, establishing communication connections, and cycling the data in a preset dynamic SD memory card partition.

Benefits of technology

The continuous recording and storage of photovoltaic glass production line data is realized. The management method of dynamic SD memory card partitioning enables efficient use of storage space, avoids data loss and storage overflow, and reduces production costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119942672A_ABST
    Figure CN119942672A_ABST
Patent Text Reader

Abstract

The invention relates to the field of photovoltaic glass, and provides a method for PLC data recording, and the method comprises the steps: obtaining multi-dimensional photovoltaic glass production line data from a plurality of sampling points; converting and verifying the multi-dimensional photovoltaic glass production line data to obtain corresponding multi-dimensional photovoltaic glass production line CSV data; establishing communication connection for the PLC, and testing the communication connection of the PLC based on a preset communication protocol; and in response to test passing, cyclically storing the CSV data of the multi-dimensional photovoltaic glass production line in a preset dynamic SD memory card partition. The data recording function of the QD81DL96 high-speed data recorder module can be completely realized by utilizing the SD memory card in the PLC body. Continuous recording and storage of photovoltaic glass production line data are achieved, the storage space is efficiently utilized through a dynamic SD storage card partition management mode, and the problems of photovoltaic glass production line data loss and storage overflow are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of photovoltaic glass, and in particular to a method for PLC data recording. Background Art

[0002] Mitsubishi QnUDV series PLC is widely used in photovoltaic glass production lines, and the data recording function is generally implemented using the QD81DL96 high-speed data recorder module. Mitsubishi QnUDV series PLC is a controller designed for industrial automation, with high performance, high reliability and easy expansion. In the photovoltaic glass production line, the PLC is responsible for monitoring and controlling the entire production process to ensure the coordinated operation and efficient operation of each process. QD81DL96 is a high-speed data recording module of Mitsubishi Q series, which is specially used for real-time collection, storage and analysis of data on the production line. In the photovoltaic glass production line, however, the QD81DL96 has a long order cycle and high cost, which will bring huge production costs when facing large-scale production line applications. Summary of the invention

[0003] Based on the above objectives, the present invention proposes a method for PLC data recording, comprising: Acquire multi-dimensional photovoltaic glass production line data from multiple sampling points; Convert and verify the multi-dimensional photovoltaic glass production line data to obtain corresponding multi-dimensional photovoltaic glass production line CSV data; Establish a communication connection for the PLC and test the communication connection of the PLC based on the preset communication protocol; In response to the test passing, the multi-dimensional photovoltaic glass production line CSV data is cyclically stored in a preset dynamic SD memory card partition.

[0004] In some embodiments, the construction process of the preset dynamic SD memory card partition includes: Real-time monitoring of the storage space of the dynamic SD memory card partition to be written and the writing speed of CSV data of the multi-dimensional photovoltaic glass production line; When the dynamic SD memory card partition to be written reaches the storage space limit or the CSV data writing speed of the multi-dimensional photovoltaic glass production line is abnormal, switch from the active partition to be written to the next available dynamic SD memory card partition as the new dynamic SD memory card partition to be written.

[0005] In some embodiments, the process of cyclically storing the multi-dimensional photovoltaic glass production line CSV data in a preset dynamic SD memory card partition includes: The multi-dimensional photovoltaic glass production line CSV data is multi-dimensionally layered according to importance and access frequency, and divided into multiple photovoltaic glass production line levels; Allocate one or more dynamic SD memory card partitions for each photovoltaic glass production line level according to a pre-configured mapping table; The data of each photovoltaic glass production line level is cyclically stored in the corresponding dynamic SD memory card partition to be written.

[0006] In some embodiments, the step of real-time monitoring the storage space of the dynamic SD memory card partition to be written and the writing speed of the multi-dimensional photovoltaic glass production line CSV data further includes: In response to the multi-dimensional photovoltaic glass production line CSV data writing speed being lower than a preset threshold, checking network latency and reducing I / O operations; In response to the multi-dimensional photovoltaic glass production line CSV data writing speed being higher than a preset threshold, the high load state is checked and the load is dispersed, and the writing batches are increased.

[0007] In some embodiments, the step of converting and verifying the multi-dimensional photovoltaic glass production line data to obtain the corresponding multi-dimensional photovoltaic glass production line CSV data includes: Preprocessing the multi-dimensional photovoltaic glass production line data; The pre-processed multi-dimensional photovoltaic glass production line data was converted into a two-dimensional table using the CPU module record setting tool of GX Works2, and the data fields were mapped to a CSV file; The CSV file is verified according to the logical relationship and scope of the data, and those that pass the verification are used as the CSV data of the multi-dimensional photovoltaic glass production line.

[0008] In some embodiments, the step of establishing a communication connection for the PLC and testing the communication connection of the PLC based on a preset communication protocol includes: Establish a communication connection between PLC and FTP server and send preset test data; Performing integrity test and accuracy test on the preset test data during transmission based on the preset communication protocol; Based on all test results, adjust the communication parameters and retest until the test passes.

[0009] In some embodiments, the multi-dimensional photovoltaic glass production line data includes temperature production data, pressure production data, speed production data, and energy consumption production data.

[0010] The present invention proposes a system for PLC data recording, comprising: A collection unit configured to obtain multi-dimensional photovoltaic glass production line data from multiple sampling points; A conversion unit configured to convert and verify the multi-dimensional photovoltaic glass production line data to obtain corresponding multi-dimensional photovoltaic glass production line CSV data; A test unit is configured to establish a communication connection for the PLC and test the communication connection of the PLC based on a preset communication protocol; The storage unit is configured to cyclically store the multi-dimensional photovoltaic glass production line CSV data in a preset dynamic SD memory card partition in response to a test passing.

[0011] The present invention provides a computer device, comprising: At least one processor; and a memory storing a computer program executable on the processor, wherein the processor executes the steps of the method for PLC data recording when executing the program.

[0012] The present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for PLC data recording are executed.

[0013] The present invention has at least the following beneficial technical effects: The present invention proposes a method for PLC data recording, the method comprising: acquiring multidimensional photovoltaic glass production line data from multiple sampling points; converting and verifying the multidimensional photovoltaic glass production line data to obtain corresponding multidimensional photovoltaic glass production line CSV data; establishing a communication connection for the PLC, and testing the communication connection of the PLC based on a preset communication protocol; in response to the test passing, cyclically storing the multidimensional photovoltaic glass production line CSV data in a preset dynamic SD memory card partition.

[0014] The present invention utilizes the SD memory card in the PLC body to fully realize the data recording function of the QD81DL96 high-speed data recorder module. Acquiring multi-dimensional photovoltaic glass production line data from multiple sampling points can fully reflect the operation status of the production line, realize the continuous recording and storage of photovoltaic glass production line data, and the dynamic SD memory card partition management method makes efficient use of storage space, avoiding the problem of data loss and storage overflow of photovoltaic glass production line. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] 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 in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.

[0016] Figure 1 A flow chart of a method for PLC data recording provided by the present invention; Figure 2A system module diagram for PLC data recording provided by the present invention; Figure 3 A sampling configuration of an embodiment of a method for PLC data recording provided by the present invention Figure 1 ; Figure 4 A sampling configuration of an embodiment of a method for PLC data recording provided by the present invention Figure 2 ; Figure 5 A communication connection configuration diagram of an embodiment of a method for PLC data recording provided by the present invention; Figure 6 A schematic diagram of the structure of an embodiment of a computer device provided by the present invention; Figure 7 A schematic diagram of the structure of an embodiment of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION

[0017] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0018] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.

[0019] The present invention proposes a method for PLC data recording, see Figure 1 , Figure 3 , Figure 4 and Figure 5 ,include: S1: Acquire multi-dimensional photovoltaic glass production line data from multiple sampling points; S2: converting and verifying the multi-dimensional photovoltaic glass production line data to obtain corresponding multi-dimensional photovoltaic glass production line CSV data; S3: Establish a communication connection for the PLC and test the communication connection of the PLC based on a preset communication protocol; S4: In response to the test passing, the multi-dimensional photovoltaic glass production line CSV data is cyclically stored in a preset dynamic SD memory card partition.

[0020] The multi-dimensional photovoltaic glass production line data can be obtained from multiple sampling points through the CPU module recording setting tool of GX Works2. The Mitsubishi QnUDV series PLC body plus the SD memory card has a data recording function. The CPU module recording setting tool in the GX Works2 programming software is used to set parameters and write simple programs to realize the sampling and processing of photovoltaic glass production line data, and then the data recording function of the QD81DL96 high-speed data recorder module can be fully realized. If a production line has 10 QD81DL96 high-speed data recorder modules, batch cost reduction can be achieved by replacing them with the PLC body plus the SD memory card. Important data in the SD memory card in the PLC body can also be uploaded to the FTP server for backup and storage through the PLC Ethernet port to prevent loss.

[0021] The present invention utilizes the SD memory card in the PLC body to fully realize the data recording function of the QD81DL96 high-speed data recorder module. Acquiring multi-dimensional photovoltaic glass production line data from multiple sampling points can fully reflect the operation status of the production line, realize the continuous recording and storage of photovoltaic glass production line data, and the dynamic SD memory card partition management method makes efficient use of storage space, avoiding the problem of data loss and storage overflow of photovoltaic glass production line.

[0022] The present invention is a method for realizing data recording function by using Mitsubishi QnUDV series PLC body plus SD memory card. A set of QD81DL96 high-speed data recorder module plus a matching 1G capacity CF card costs about 5,000 yuan, and the order cycle is very long. The present invention omits the QD81DL96 high-speed data recorder module, which can save 5,000 yuan in cost and realize the characteristics of simplicity, convenience and practicality.

[0023] The process of using the CPU module record setting tool in the GX Works2 programming software to set parameters and write simple programs is as follows: 1. For engineering PLC series, select QCPU (Q mode).

[0024] 2. Record type: Select continuous record, see example Figure 3 .

[0025] 3. Collection: Select condition specification and soft component specification.

[0026] 4. Data: Set the start, end, data type, capacity, and output format, see example Figure 4 .

[0027] 5. CSV output: Check the output time column, output address column, output data collection interval column, and output execution program name column.

[0028] 6. Save: Simple settings, check the date and time; the number of saved files is 1-65535, and the action when the number of saved files is exceeded is overwrite; for the file switching timing, select the number of records to specify, select 100.

[0029] 7. File transfer: Check to transfer files to the FTP server, set up the server, check to resend files until the file transfer retry time is over, the file transfer retry time is 1-1440 minutes, see example Figure 5 .

[0030] 8. Recording action: Start automatically.

[0031] 9. Completion: The data record name is set to LOG01. This example uses LOG01-LOG06 for data records.

[0032] 10. Specify the online connection target, select the communication method to be used, and the communication test is normal.

[0033] 11. Write record settings online, select SD memory card as the object storage, check general settings, and click the Write button.

[0034] 12. Record status display and operation, check the object, and click the start button.

[0035] 13. Monitor the data record file transfer status, including the transfer status, normal completion count, abnormal completion count, and error code.

[0036] 14. Record file operations, you can save or delete files in the SD memory card in the PLC to the computer.

[0037] The SD memory card used by the PLC uses 8G memory, and 16G memory will not be recognized. Before pulling out the SD memory card in the PLC, press the SD CARD OFF button on the PLC for 2 seconds, and wait until the SD CARD green indicator on the PLC goes out before pulling it out. The SD memory card used by the PLC does not need to purchase Mitsubishi original SD cards, you can use domestic industrial-grade SD cards, 8G is about 40 yuan. When saving 100 items, the file will be transferred to the FTP server only after 100 items are saved. When there are less than 100 items, the transfer status in the monitoring data record file transfer status will show waiting for upload.

[0038] In some embodiments, see Figure 1 The construction process of the preset dynamic SD memory card partition includes: Real-time monitoring of the storage space of the dynamic SD memory card partition to be written and the writing speed of CSV data of the multi-dimensional photovoltaic glass production line; When the dynamic SD memory card partition to be written reaches the storage space limit or the CSV data writing speed of the multi-dimensional photovoltaic glass production line is abnormal, switch from the active partition to be written to the next available dynamic SD memory card partition as the new dynamic SD memory card partition to be written.

[0039] By real-time monitoring of the storage space of the dynamic SD memory card partition to be written, the system can take timely measures before the storage space is about to run out. Data loss or storage failure caused by insufficient storage space is avoided, thereby ensuring the integrity and accuracy of data recording. When the dynamic SD memory card partition to be written reaches the storage space limit, the system can automatically switch to the next available dynamic SD memory card partition. This automatic switching function ensures the continuity of data recording, and even if a partition has insufficient storage space, it will not affect the overall data recording process.

[0040] Real-time monitoring of the writing speed of CSV data of the multi-dimensional photovoltaic glass production line can promptly detect abnormal writing speeds, help quickly locate and resolve potential writing performance bottlenecks, and thus improve the efficiency of data writing. By automatically switching partitions, the system can balance the load between different partitions. This helps to avoid performance degradation or damage to a partition due to long-term high-load writing, thereby extending the service life of the SD memory card.

[0041] In some embodiments, see Figure 1 The process of cyclically storing the multi-dimensional photovoltaic glass production line CSV data in a preset dynamic SD memory card partition includes: The multi-dimensional photovoltaic glass production line CSV data is multi-dimensionally layered according to importance and access frequency, and divided into multiple photovoltaic glass production line levels; Allocate one or more dynamic SD memory card partitions for each photovoltaic glass production line level according to a pre-configured mapping table; The data of each photovoltaic glass production line level is cyclically stored in the corresponding dynamic SD memory card partition to be written.

[0042] By stratifying the multi-dimensional photovoltaic glass production line CSV data according to importance and access frequency, data can be managed more effectively, making common or important data easier to access and improving the efficiency of data storage and access.

[0043] The data management process is simplified by allocating one or more dynamic SD memory card partitions to each photovoltaic glass production line level through a pre-configured mapping table. Administrators can intuitively understand the type of data stored in each partition, making it easier to maintain and optimize.

[0044] The data of each photovoltaic glass production line level is stored in the corresponding dynamic SD memory card partition to be written, which helps to balance the load of different partitions. This can avoid the performance degradation of a partition due to long-term high-load writing, thereby improving the overall storage performance.

[0045] Data tiered storage makes backup operations simpler and more efficient. Administrators can choose to back up specific tiers of data as needed, without having to back up the entire data set. The use of dynamic SD card partitions makes data recovery more flexible. In the event of data loss, administrators can quickly locate and restore the affected data partitions. The circular storage strategy helps reduce the backup storage space occupied. By regularly overwriting old data, storage space can be freed up for new data, thereby reducing backup costs.

[0046] In some embodiments, see Figure 1 The step of real-time monitoring the storage space of the dynamic SD memory card partition to be written and the writing speed of the multi-dimensional photovoltaic glass production line CSV data also includes: In response to the multi-dimensional photovoltaic glass production line CSV data writing speed being lower than a preset threshold, checking network latency and reducing I / O operations; In response to the multi-dimensional photovoltaic glass production line CSV data writing speed being higher than a preset threshold, the high load state is checked and the load is dispersed, and the writing batches are increased.

[0047] When the CSV data writing speed of the multi-dimensional photovoltaic glass production line is lower than the preset threshold, the system can quickly check the network delay and reduce unnecessary I / O operations. This helps to reduce the delay of data transmission and processing, and improve the real-time and accuracy of data writing.

[0048] When the data writing speed is higher than the preset threshold, the system can detect the high load state and take corresponding measures to disperse the load, such as increasing the write batch. This helps to avoid performance degradation or crash of a single partition or system component due to overload, thereby maintaining the stability and reliability of the overall system.

[0049] The system can dynamically adjust resource allocation, such as network bandwidth, CPU, and memory, based on changes in data write speed. This helps ensure that resources are fully utilized and avoids resource waste and bottleneck issues. By distributing the load and increasing write batches, the system can more evenly utilize the storage space of the SD memory card. This helps extend the life of the storage media and reduce failures and replacement costs caused by excessive wear.

[0050] In some embodiments, see Figure 1 The step of converting and verifying the multi-dimensional photovoltaic glass production line data to obtain the corresponding multi-dimensional photovoltaic glass production line CSV data includes: Preprocessing the multi-dimensional photovoltaic glass production line data; The pre-processed multi-dimensional photovoltaic glass production line data was converted into a two-dimensional table using the CPU module record setting tool of GX Works2, and the data fields were mapped to a CSV file; The CSV file is verified according to the logical relationship and scope of the data, and those that pass the verification are used as the CSV data of the multi-dimensional photovoltaic glass production line.

[0051] Through data preprocessing, multi-dimensional photovoltaic glass production line data can be cleaned, converted and integrated to remove redundant, erroneous and inconsistent information, which helps to improve the accuracy and reliability of data and provide a solid foundation for subsequent data analysis and utilization.

[0052] Converting the preprocessed data into a two-dimensional table format makes the data more structured, easier to understand and analyze. The two-dimensional table can clearly show the logical relationship and scope of the data, which helps to discover potential data problems and anomalies.

[0053] Validating CSV files ensures that the logical relationships and scope of the data are as expected, further improving the accuracy and reliability of the data. The validation process can detect and correct errors and inconsistencies in the data to ensure data quality.

[0054] CSV files are a universal, easy-to-read and write data format that is suitable for a variety of data processing and analysis tools. Converting multi-dimensional photovoltaic glass production line data to CSV format can facilitate data storage, transmission, and sharing. CSV files usually take up less storage space and are easy to compress and back up. It helps to reduce data storage costs and improve storage efficiency. The structured characteristics of CSV files make data access more efficient. Through indexing and query optimization, you can quickly locate and analyze the required data, improving the efficiency of data processing.

[0055] CSV files can be easily imported into data visualization tools to generate visualization results such as charts and reports. This helps to intuitively display the characteristics and trends of multi-dimensional photovoltaic glass production line data and provide support for decision-making.

[0056] In some embodiments, see Figure 1 and Figure 5 The step of establishing a communication connection for the PLC and testing the communication connection of the PLC based on a preset communication protocol includes: Establish a communication connection between PLC and FTP server and send preset test data; Performing integrity test and accuracy test on the preset test data during transmission based on the preset communication protocol; Based on all test results, adjust the communication parameters and retest until the test passes.

[0057] Integrity testing ensures that data has not been truncated or lost during transmission. Accuracy testing verifies that data has maintained its original accuracy and authenticity during transmission. This helps ensure that the receiving end can correctly understand and use the transmitted data, avoiding decision-making errors or operational failures caused by data errors.

[0058] According to the test results, the communication parameters between the PLC and the FTP server, such as baud rate, data bits, stop bits, etc., can be adjusted dynamically. This helps to optimize communication performance and improve the efficiency and stability of data transmission. Through continuous testing and adjustment, the best combination of communication parameters can be gradually found to improve communication quality. This helps to reduce the risk of communication failures and data loss and improve the overall performance and reliability of the system.

[0059] It can adapt to different network environments, such as LAN, WAN, etc. It enables the system to work normally under different network conditions, improving the flexibility and adaptability of the system. Testing through preset communication protocols can ensure that the system supports multiple communication protocols, such as TCP / IP, Modbus, etc. It helps to achieve seamless connection and data exchange with other devices and systems, and improves the scalability and compatibility of the system.

[0060] In some embodiments, see Figure 1 , Figure 3 and Figure 4 The multi-dimensional photovoltaic glass production line data includes temperature production data, pressure production data, speed production data and energy consumption production data.

[0061] Temperature is one of the key factors affecting the quality and efficiency of photovoltaic glass production. By monitoring temperature data, we can understand the temperature conditions of the production environment in real time and ensure that production is carried out within an appropriate temperature range. Excessive temperature may cause equipment overheating, accelerate equipment aging, and even cause failures. Through temperature data, we can promptly detect and prevent equipment overheating problems and extend the service life of equipment. According to temperature data, we can adjust production process parameters such as heating temperature and cooling speed to optimize the production process and improve product quality and production efficiency.

[0062] Pressure data can reflect the stress of the equipment during operation, which helps to detect equipment anomalies and potential failures in a timely manner. By monitoring pressure data, pressure parameters in the production process, such as raw material delivery pressure, molding pressure, etc., can be adjusted to ensure the stability and consistency of product quality. Reasonable pressure settings can reduce energy consumption and material waste in the production process and improve production efficiency.

[0063] Speed ​​data can reflect the running speed and production efficiency of the production line, which helps to timely understand the production progress and capacity status. By monitoring speed data, the running rhythm of the production line can be adjusted to ensure the coordination between various processes and improve the overall production efficiency. Speed ​​data can help find bottlenecks in the production process, eliminate bottlenecks by optimizing equipment configuration and process flow, and improve the overall performance of the production line.

[0064] Energy consumption data can reflect the energy consumption in the production process, which helps to formulate energy-saving and emission-reduction measures, reduce production costs and environmental impact. By monitoring energy consumption data, energy waste problems can be discovered and corresponding measures can be taken to optimize them, such as adjusting equipment power and optimizing production processes. Reasonable energy utilization can improve the overall energy efficiency of the production line, reduce the energy consumption cost per unit product, and enhance the market competitiveness of enterprises.

[0065] The present invention proposes a system for PLC data recording, see Figure 2 ,include: A collection unit 100 is configured to obtain multi-dimensional photovoltaic glass production line data from multiple sampling points; A conversion unit 200 is configured to convert and verify the multi-dimensional photovoltaic glass production line data to obtain corresponding multi-dimensional photovoltaic glass production line CSV data; The test unit 300 is configured to establish a communication connection for the PLC and test the communication connection of the PLC based on a preset communication protocol; The storage unit 400 is configured to cyclically store the multi-dimensional photovoltaic glass production line CSV data in a preset dynamic SD memory card partition in response to the test passing.

[0066] PLC usually has a considerable amount of memory inside, which can be used to store data generated during the production process. The data to be recorded can be stored in the PLC's memory in a certain format through programming. These data can be accessed through the PLC's programming interface (such as HMI touch screen, host computer software, etc.) for viewing and analysis. PLC usually has a variety of communication interfaces (such as Ethernet, RS-485, etc.), which can establish a communication connection with the host computer (such as PC, server, etc.). Through programming, data exchange between PLC and host computer can be achieved. The host computer can run special data recording software to receive data from PLC and store it in a local disk or database. Data recording software usually has a user-friendly interface to facilitate users to view and analyze data. In the process of data recording, it is necessary to ensure the security of data to prevent data loss or tampering.

[0067] The PLC data recording system can monitor various parameters in the production process in real time, such as temperature, pressure, speed, energy consumption, etc., and feed back these data to the operator or management system in a timely manner. Through PLC data recording, the production process can be automatically controlled. The system can automatically adjust the operating status of the equipment according to the preset parameters and conditions, reduce manual intervention, and improve production efficiency and accuracy. The PLC data recording system can monitor the operating status of the equipment in real time and find potential signs of failure.

[0068] By setting the warning threshold, the system can issue a warning before a fault occurs, reminding operators to take timely measures to avoid the occurrence or expansion of the fault.

[0069] Based on the same inventive concept, according to another aspect of the present invention, Figure 6 As shown, an embodiment of the present invention further provides a computer device 30, which includes a processor 310 and a memory 320. The memory 320 stores a computer program 321 that can be run on the processor. When the processor 310 executes the program, the steps of the above method are performed.

[0070] Based on the same inventive concept, according to another aspect of the present invention, Figure 7 As shown, an embodiment of the present invention further provides a computer-readable storage medium 40, which stores a computer program 410 for executing the above method when executed by a processor.

[0071] The embodiment of the present invention may also include a corresponding computer device. The computer device includes a memory, at least one processor, and a computer program stored in the memory and executable on the processor, and the processor executes any one of the above methods when executing the program.

[0072] The memory, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules in the embodiments of the present application. The processor executes various functional applications and data processing of the device by running the non-volatile software programs, instructions and modules stored in the memory, that is, implementing the above method.

[0073] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In an embodiment, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the local module via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0074] Finally, it should be noted that a person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium of the program can be a disk, an optical disk, a read-only storage memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiments can achieve the same or similar effects as the corresponding above-mentioned arbitrary method embodiments.

[0075] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.

[0076] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope of the embodiments disclosed in the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. The serial numbers of the embodiments disclosed in the above embodiments of the present invention are for description only and do not represent the advantages and disadvantages of the embodiments. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.

[0077] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.

[0078] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the above embodiments of the present invention, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.

Claims

1. A method for PLC data recording, characterized in that: include: Acquire multi-dimensional photovoltaic glass production line data from multiple sampling points; Convert and verify the multi-dimensional photovoltaic glass production line data to obtain corresponding multi-dimensional photovoltaic glass production line CSV data; Establish a communication connection for the PLC and test the communication connection of the PLC based on the preset communication protocol; In response to the test passing, the multi-dimensional photovoltaic glass production line CSV data is cyclically stored in a preset dynamic SD memory card partition.

2. A method for PLC data recording according to claim 1, characterized in that: The construction process of the preset dynamic SD memory card partition includes: Real-time monitoring of the storage space of the dynamic SD memory card partition to be written and the writing speed of CSV data of the multi-dimensional photovoltaic glass production line; When the dynamic SD memory card partition to be written reaches the storage space limit or the CSV data writing speed of the multi-dimensional photovoltaic glass production line is abnormal, switch from the active partition to be written to the next available dynamic SD memory card partition as the new dynamic SD memory card partition to be written.

3. A method for PLC data recording according to claim 2, characterized in that: The process of cyclically storing the multi-dimensional photovoltaic glass production line CSV data in a preset dynamic SD memory card partition includes: The multi-dimensional photovoltaic glass production line CSV data is multi-dimensionally layered according to importance and access frequency, and divided into multiple photovoltaic glass production line levels; Allocate one or more dynamic SD memory card partitions for each photovoltaic glass production line level according to a pre-configured mapping table; The data of each photovoltaic glass production line level is cyclically stored in the corresponding dynamic SD memory card partition to be written.

4. A method for PLC data recording according to claim 2, characterized in that: The step of real-time monitoring the storage space of the dynamic SD memory card partition to be written and the writing speed of the multi-dimensional photovoltaic glass production line CSV data also includes: In response to the multi-dimensional photovoltaic glass production line CSV data writing speed being lower than a preset threshold, checking network latency and reducing I / O operations; In response to the multi-dimensional photovoltaic glass production line CSV data writing speed being higher than a preset threshold, the high load state is checked and the load is dispersed, and the writing batches are increased.

5. A method for PLC data recording according to claim 1, characterized in that: The step of converting and verifying the multi-dimensional photovoltaic glass production line data to obtain the corresponding multi-dimensional photovoltaic glass production line CSV data comprises: Preprocessing the multi-dimensional photovoltaic glass production line data; The pre-processed multi-dimensional photovoltaic glass production line data was converted into a two-dimensional table using the CPU module record setting tool of GX Works2, and the data fields were mapped to a CSV file; The CSV file is verified according to the logical relationship and scope of the data, and those that pass the verification are used as the CSV data of the multi-dimensional photovoltaic glass production line.

6. A method for PLC data recording according to claim 1, characterized in that: The step of establishing a communication connection for the PLC and testing the communication connection of the PLC based on a preset communication protocol includes: Establish a communication connection between PLC and FTP server and send preset test data; Performing integrity test and accuracy test on the preset test data during transmission based on the preset communication protocol; Based on all test results, adjust the communication parameters and retest until the test passes.

7. A method for PLC data recording according to claim 1, characterized in that: The multi-dimensional photovoltaic glass production line data includes temperature production data, pressure production data, speed production data and energy consumption production data.

8. A system for PLC data recording, characterized in that: include: A collection unit configured to obtain multi-dimensional photovoltaic glass production line data from multiple sampling points; A conversion unit configured to convert and verify the multi-dimensional photovoltaic glass production line data to obtain corresponding multi-dimensional photovoltaic glass production line CSV data; A test unit is configured to establish a communication connection for the PLC and test the communication connection of the PLC based on a preset communication protocol; The storage unit is configured to cyclically store the multi-dimensional photovoltaic glass production line CSV data in a preset dynamic SD memory card partition in response to the test passing.

9. A computer device comprising: at least one processor; and a memory storing a computer program executable on the processor, wherein the processor executes the steps of a method for PLC data recording as claimed in any one of claims 1 to 7 when executing the program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the computer program performs the steps of the method for PLC data recording according to any one of claims 1 to 7.