Data uploading management method of automatic production line and transformation method of production line
By loading FTP client and data upload management software modules in the PLC, efficient upload of automated production line equipment data is solved, and the problems of high cost and low efficiency in the existing technology are improved, and the development efficiency and personalized demand satisfaction are reduced. labor costs.
Patent Information
- Application Number
- CN202411005154.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-26
AI Technical Summary
The existing automated production line equipment data upload management methods are costly, resulting in low development efficiency and difficulty in meeting the personalized needs of each equipment, and the labor cost is relatively high.
Load the FTP client software and data upload management software module in the PLC, and upload data to the server based on the FTP protocol through the PLC's FTP client to realize data sorting, storage, triggering and monitoring, reducing the dependence of host computers and PC resources.
It saves computer and PC resources, improves development efficiency, meets the personalized needs of each device, and reduces labor costs.
Smart Images

Figure CN119024776A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a technology for uploading production data of equipment in an automated production line, and in particular to a data uploading management method for an automated production line and a method for modifying a production line. Background Art
[0002] In the market, most of the data generated by equipment production is communicated with the data server in the form of a PC host computer, and then the relevant data is transmitted to the server. Due to cost considerations, several devices on a production line often share one host computer. In practice, the data of a single device on a production line often needs to be modified. For example, if a string of data is added, the host computer must also be changed, which will affect other machines. At the same time, when modifying the process, a PLC engineer and a host computer engineer are required to work together, which has a high labor cost and requires a large investment to match such development.
[0003] CN 115242776 A discloses a device and method for uploading PLC internal data from a server, wherein the device includes a PLC body, a switch, an FTP server and a terminal; the PLC obtains a trigger code, uploads the trigger code to the FTP server through the switch, and the terminal obtains the trigger code information in the FTP server. The method for uploading PLC internal data through an FTP server is performed according to the following steps: S1: when a workstation fails, the workstation status information is sent; S2: according to the delay module, it is determined whether to send the workstation status information; S3: when the workstation status information is received, the trigger module is started and trigger information is generated; S4: trigger code is generated according to the received trigger information; S5: the trigger code is extracted and the corresponding annotation information is matched in the annotation module library to generate trigger code; S6: trigger code information is received and file data is generated; S7: the file data is uploaded to the FTP server; S8: the upload status of the file data is displayed in the trigger position module; in this way, the device status information and process data are transmitted to the PC or remote server in the form of files or folders through the FTP server.
[0004] However, for data upload management of equipment in automated production lines, especially data upload management of equipment in existing production lines, adopting this method for upgrading and replacing still has the problem of high cost. Summary of the invention
[0005] In view of this, the present invention aims to solve the deficiencies in the prior art, and its main purpose is to provide a data upload management method for an automated production line and a production line modification method, which saves host computer and PC resources, improves development efficiency, and easily meets the personalized needs of each automated equipment on the production line, reducing labor costs.
[0006] To achieve the above purpose, the present invention adopts the following technical solutions: A data upload management method for an automated production line, which is based on an automated production line and a server; the automated production line includes several automated devices, the automated devices are configured with a PLC, and the PLC is connected to a touch screen; the method includes: The server loads FTP client software in the PLC so that the PLC has the function of an FTP client, and loads a data upload management software module in the PLC, wherein the data upload management software module includes a storage body and storage mode setting program module, a data generation program module, a trigger program module and a monitoring program module, wherein the storage body and storage mode setting program module includes: storage location selection, storage mode selection, storage file selection; the data generation program module is used to generate data after collating a series of data in the PLC; the trigger program module is used to trigger data generation, data preservation, and data upload in the PLC; the monitoring program module is used to monitor the number of files produced and the number of files uploaded, and if the time is exceeded and the number of files produced and the number of files uploaded are inconsistent, an alarm is issued; The data generated by the several automated equipment of the automated production line during production are organized into files through the corresponding PLC data upload management software module, and uploaded to the designated server based on the FTP protocol by the corresponding PLC FTP client.
[0007] As a preferred solution, for the various data of a single device of the automated production line, the corresponding PLC data upload management software module organizes the various data into different files, and presets different table addresses on the server, and the corresponding PLC FTP client transfers different files to different table addresses.
[0008] As a preferred solution, the automated production line has one or more PLCs, and the multiple PLCs are communicatively connected to each other.
[0009] As a preferred solution, the information of the current FTP client and the target server to be interconnected is set in the FTP client of the PLC, and the information of the target server includes the IP address of the server, the user ID of the server and the password.
[0010] As a preferred solution, after the data upload management software module of the PLC organizes the data into files, it first stores the data locally and checks whether the uploaded data and format are correct. If correct, the corresponding FTP client of the PLC cuts the file based on the FTP protocol and uploads it to the designated server. If there is an error, an alarm is issued.
[0011] As a preferred solution, after the file is cut and uploaded to the designated server by the corresponding FTP client of the PLC based on the FTP protocol, the server feeds back information to the FTP client of the PLC indicating that the file has been successfully uploaded; if there is no feedback within the set time T, it is assumed that the file upload has failed, and a retry to upload the file is started.
[0012] As a preferred solution, the number of retries is greater than 2, and the retry interval is T.
[0013] As a preferred solution, after receiving the feedback information from the server, the FTP client of the PLC controls the deletion of the file stored locally.
[0014] As a preferred solution, the file is in CSV format.
[0015] A method for transforming a production line, wherein the automated production line includes a plurality of automated devices, the automated devices are equipped with a PLC, and the PLC communicates with a server via a same host computer; The method comprises: removing the host computer; loading FTP client software in the PLC so that the PLC has the function of an FTP client, and loading a data upload management software module in the PLC, wherein the data upload management software module comprises a storage body and storage mode setting program module, a data generation program module, a trigger program module and a monitoring program module, wherein the storage body and storage mode setting program module comprises storage location selection, storage mode selection and storage file selection; the data generation program module is used to generate data after collating a series of data in the PLC; the trigger program module is used to trigger data generation, data preservation and data upload in the PLC; the monitoring program module is used to monitor the number of files produced and the number of files uploaded, and if the number of files produced and the number of files uploaded are inconsistent after exceeding the time limit, an alarm is issued; The data generated by the several automated equipment of the automated production line during production are organized into files through the corresponding PLC data upload management software module, and uploaded to the designated server based on the FTP protocol by the corresponding PLC FTP client.
[0016] Compared with the prior art, the present invention has obvious advantages and beneficial effects. Specifically, it can be seen from the above technical scheme that it mainly loads FTP client software in PLC through the server, so that PLC has the function of FTP client, and loads a data upload management software module in PLC. The data generated by several automation equipment of the automated production line during production are sorted into files through the corresponding PLC data upload management software module, and the corresponding PLC FTP client cuts the file based on the FTP protocol and uploads it to the designated server, thereby saving host computer and PC resources and improving development efficiency; moreover, each device of the production line can meet the needs of customers according to the actual situation (such as temporary testing or adding and modifying content, etc.), which is easy to meet the personalized needs of each automation equipment on the production line and reduce labor costs.
[0017] In order to more clearly illustrate the structural features and effects of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a system (and software) structure diagram of a data upload management method for an automated production line according to an embodiment of the present invention; Figure 2 This is an interface diagram of an FTP client setting tool (for setting the server) according to an embodiment of the present invention; Figure 3 It is a diagram of the interface of the FTP client setting tool of an embodiment of the present invention (requesting FTP file transfer); Figure 4 It is an interface of the touch screen of the embodiment of the present invention (the user can select corresponding functional parameters according to actual needs). DETAILED DESCRIPTION
[0019] Please refer to Figures 1 to 4 As shown, it shows the specific scheme of the embodiment of the present invention.
[0020] In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "up", "down", "left", "right", etc. are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as a limitation on the present invention.
[0021] A data upload management method for an automated production line, which is based on an automated production line 100 and a server; the automated production line includes a number of automated equipment (automated equipment 1 to automated equipment n) for cooperating to realize the production process of the same production line, the automated equipment is configured with a PLC, the automated production line has one or more of the PLCs, and the multiple PLCs are connected to each other in communication. For example, an automated production line includes RFID automated equipment, QR automated equipment, assembly automated equipment, CCD automated equipment, and finished product discharge automated equipment arranged in sequence. A PLC program module is arranged in the PLC, and the PLC program module is connected to a human-machine exchange interface module. In this embodiment, the PLC is connected to a touch screen, which is a programmable touch screen, usually having a memory and a CPU, and the CPU is connected to the memory. The server usually includes a processor, a memory, and a computer program, and the computer program is stored in the memory and executed by the processor.
[0022] The method comprises: The FTP client software is loaded in the PLC so that the PLC has the function of the FTP client. The communication between the FTP client and the server is based on the FTP protocol (File Transfer Protocol). The information of the current FTP client and the target server to be interconnected is set in the FTP client of the PLC. The information of the target server includes the IP address of the server, the user ID of the server and the password. In addition, a data upload management software module is loaded in the PLC, and the data upload management software module includes a storage body and storage mode setting program module, a data generation program module, a trigger program module and a monitoring program module, wherein the storage body and storage mode setting program module is used to set selection functions, including: storage location selection (whether the data is first stored in the SD card of the PLC or in the CPU of the PLC); storage mode selection (whether the data is stored locally or directly on the server); storage file selection (whether the corresponding data exists in a CSV file or different CSV files); data upload shielding selection, GRR correlation mode selection, and the number of files produced, the time of file production, the number of files uploaded, and the time of file upload are displayed on the touch screen, and multiple functional parameters are displayed on the touch screen; in this embodiment, the data needs to be stored locally first (the storage location can be set as needed), and the uploaded data and format are checked for errors, and then the subsequent data is uploaded to the server based on the FTP protocol by cutting files; the data generation program module is used to generate data through the MPRINT instruction after collating a series of data in the PLC. The trigger program module is used to trigger data generation, data storage, and data upload in the PLC; the monitoring program module is used to monitor the number of files produced and the number of files uploaded, and use this as a comparison basis to perform semi-closed loop management on data upload; if the number of files produced and the number of files uploaded are inconsistent after a timeout period (the timeout period can be freely set, such as 60 seconds), an alarm is issued; The data (for example, status information, process data, etc.) generated by the several automated equipment of the automated production line during production are organized into files through the corresponding PLC data upload management software module. The files are in CSV format and are uploaded to the designated server by the corresponding PLC FTP client based on the FTP protocol.
[0023] For the various data of a single device of the automated production line, the corresponding PLC data upload management software module organizes the various data into different CSV format files, and presets different table addresses on the server. The corresponding PLC FTP client transfers the different CSV format files to different table addresses.
[0024] In this embodiment, after the data upload management software module of the PLC organizes the data into files, the data is first stored locally, and the uploaded data and format are checked for errors. If correct, the corresponding FTP client of the PLC uploads the data to the designated server, and if incorrect, an alarm is triggered. After the file is uploaded to the designated server by the corresponding FTP client of the PLC, the server feeds back information to the FTP client of the PLC indicating that the file is successfully uploaded; after the FTP client of the PLC receives the feedback information from the server, it controls the deletion of the file stored locally. If there is no feedback within the set time length T, it is assumed that the file upload fails (the file still remains in the PLC at this time), and the file upload is started to be retried (the behavior of "the FTP client of the PLC cuts the file and uploads it to the designated server based on the FTP protocol" is retried), the number of retries is greater than 2 times, and is set to 3 times in this embodiment, and can actually be flexibly set, and the retry interval time length T. T can be freely set, for example, 10 seconds. If there is no feedback after 10 seconds, it is assumed that the file upload fails and a retry is required.
[0025] In this embodiment, the program running environment is as follows: 1. Hardware environment: PLC hardware includes Keyence PLC: KV-7500 and Weiluntong touch screen.
[0026] 2. Programming environment: KV STUDIO 11.64.
[0027] 3. Programming language: PLC (Keyence) Weiluntong graphics drawing.
[0028] like Figure 2 As shown, it is the FTP client setting tool interface, which is displayed on the touch screen; select PLC (such as KV-7500), check to confirm the use of the FTP client function of the PLC, and then set the server, including setting at least the following information of the server: the IP address of the server, the user ID and password of the server, setting the information of the FTP client and the target server, and realizing the interconnection between the two on the hardware network; at the same time, set the timeout time, number of retries, retry interval (duration), opening method, port number and other information.
[0029] like Figure 3As shown, request FTP file transfer to send / get files / soft components to the specified server. On the equipment of the automated production line, various electrical switches, relays, contactors and other control components are used to form circuits to control electrical equipment. In PLC, internal storage units are usually used to simulate various conventional electrical components. These simulated electrical components are called PLC soft components, which usually use letters and numbers to indicate the type and address number of the component. Depending on the PLC model used, the applicable soft component address number is also different. The detailed settings for FTP file transfer include at least: connecting to the destination server, the transfer object, the transfer action, the transfer destination, the transfer source, and the file can be set to be deleted after the transfer is successful.
[0030] like Figure 4 As shown, it shows an interface of the touch screen. Users can select corresponding function parameters according to actual needs, such as: 1. Whether the data is stored in the PLC SD card or the PLC CPU first; 2. Whether the data is stored locally or directly on the server. In practice, it is often necessary to save it locally first to check whether the uploaded data and format are correct; 3. Whether the corresponding data exists in one CSV file or different CSV files; In KEYENCE PLC, after a series of data is organized, data is generated using the MPRINT instruction. If a device in an automated production line contains multiple types of data that need to be transmitted to different table addresses on the server, you only need to generate different data files.
[0031] The above-mentioned data upload management method for automated production lines can be applied to new automated production lines, and is also fully applicable to the transformation of existing automated production lines: A traditional automated production line includes several automated equipment, each of which is equipped with a PLC, which communicates with a server via the same host computer. For example, an automated production line includes RFID automated equipment, QR automated equipment, assembly automated equipment, CCD automated equipment, and finished product discharge automated equipment arranged in sequence. In traditional technology, these automated equipment are connected to the PLC, which is connected to the host computer, and the host computer uploads the equipment production data to the server. During the transformation, the host computer is removed, and the FTP client software is loaded in the PLC so that the PLC has the function of the FTP client, and a data upload management software module is loaded in the PLC, the data upload management software module includes a storage body and storage mode setting program module, a data generation program module, a trigger program module and a monitoring program module, wherein the storage body and storage mode setting program module includes: storage location selection, storage mode selection, storage file selection; the data generation program module is used to generate data after collating a series of data in the PLC; the trigger program module is used to trigger data generation, data preservation, and data upload in the PLC; the monitoring program module is used to monitor the number of files produced and the number of files uploaded, and if the number of files produced and the number of files uploaded are inconsistent after the time is exceeded, an alarm is issued; the data generated by several automation equipment of the automated production line during production is sorted into files (such as files in CSV format) by the corresponding data upload management software module of the PLC, and uploaded to the designated server by the corresponding FTP client of the PLC based on the FTP protocol, so that the FPT client directly sends the data to the server, and the server can feedback the signal to the FPT client, which is simple and efficient.
[0032] Similarly, for the various data of a single device of the automated production line, the corresponding PLC data upload management software module organizes the various data into different files, and presets different table addresses on the server, and the corresponding PLC FTP client transfers different files to different table addresses. After the PLC data upload management software module organizes the data into files, it first stores the data locally, and checks whether the uploaded data and format are correct. If correct, the corresponding PLC FTP client cuts the file based on the FTP protocol and uploads it to the designated server. If there is an error, an alarm is issued. After the file is uploaded to the designated server by the corresponding PLC FTP client based on the FTP protocol, the server feeds back information to the PLC FTP client indicating that the file upload is successful; if there is no feedback within the set time length T, it is assumed that the file upload fails, and the file upload is started again; the number of retries is greater than 2 times, and the retry interval is T. After the PLC FTP client receives the feedback information from the server, it controls the deletion of the file stored locally.
[0033] The design focus of the present invention is that it mainly loads FTP client software in PLC so that PLC has the function of FTP client, and loads a data upload management software module in PLC. The data generated by several automated equipment of the automated production line during production are sorted into files through the corresponding PLC data upload management software module, and uploaded to the designated server by the corresponding PLC FTP client based on the FTP protocol, thereby saving host computer and PC resources and improving development efficiency; moreover, each device of the production line can meet the needs of customers according to the actual situation (such as temporary testing or adding and modifying content, etc.), which is easy to meet the personalized needs of each automated equipment on the production line and reduce labor costs.
[0034] The above description is only a preferred embodiment of the present invention and does not limit the technical scope of the present invention. Therefore, any slight modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention are still within the scope of the technical solution of the present invention.
Claims
1. A data upload management method for an automated production line, characterized in that: It is based on automated production lines and servers; The automated production line includes several automated equipment, the automated equipment is configured with a PLC, and the PLC is connected to a touch screen; the method includes: FTP client software is loaded in the PLC so that the PLC has the function of FTP client, and a data upload management software module is loaded in the PLC, the data upload management software module includes a storage body and storage mode setting program module, a data generation program module, a trigger program module and a monitoring program module, wherein the storage body and storage mode setting program module includes: storage location selection, storage mode selection, storage file selection; the data generation program module is used to generate data after collating a series of data in the PLC; the trigger program module is used to trigger data generation, data preservation, and data upload in the PLC; the monitoring program module is used to monitor the number of files produced and the number of files uploaded, and if the time is exceeded and the number of files produced and the number of files uploaded are inconsistent, an alarm is issued; The data generated by the several automated equipment of the automated production line during production are organized into files through the corresponding PLC data upload management software module, and uploaded to the designated server based on the FTP protocol by the corresponding PLC FTP client.
2. The data upload management method for an automated production line according to claim 1, characterized in that: For the various data of a single device of the automated production line, the corresponding PLC data upload management software module organizes the various data into different files, and presets different table addresses on the server, and the corresponding PLC FTP client transfers different files to different table addresses.
3. The data upload management method for an automated production line according to claim 1, characterized in that: The automated production line has one or more PLCs, and the multiple PLCs are communicatively connected with each other.
4. The data upload management method for an automated production line according to claim 1, characterized in that: The information of the current FTP client and the target server to be interconnected is set in the FTP client of the PLC, and the information of the target server includes the IP address of the server, the user ID of the server and the password.
5. The data upload management method for an automated production line according to claim 1, characterized in that: After the data upload management software module of the PLC organizes the data into files, it first stores the data locally and checks whether the uploaded data and format are correct. If correct, the corresponding FTP client of the PLC cuts the file based on the FTP protocol and uploads it to the designated server. If there is an error, an alarm is triggered.
6. The data upload management method for an automated production line according to claim 5, characterized in that: After the file is uploaded to the designated server by the corresponding FTP client of the PLC based on the FTP protocol, the server feeds back information to the FTP client of the PLC indicating that the file upload is successful; if there is no feedback within the set time T, it is assumed that the file upload failed, and a retry to upload the file is started.
7. The data upload management method for an automated production line according to claim 6, characterized in that: If the number of retries is greater than 2, the retry interval is T.
8. The data upload management method for an automated production line according to claim 6, characterized in that: After receiving the feedback information from the server, the FTP client of the PLC controls the deletion of the file stored locally.
9. The data upload management method for an automated production line according to claim 1, characterized in that: The file is in CSV format.
10. A method for transforming a production line, characterized in that: The automated production line includes several automated equipment, each of which is equipped with a PLC, and the PLC communicates with the server via the same host computer; The method comprises: removing the host computer; loading FTP client software in the PLC so that the PLC has the function of an FTP client, and loading a data upload management software module in the PLC, wherein the data upload management software module comprises a storage body and storage mode setting program module, a data generation program module, a trigger program module and a monitoring program module, wherein the storage body and storage mode setting program module comprises storage location selection, storage mode selection and storage file selection; the data generation program module is used to generate data after collating a series of data in the PLC; the trigger program module is used to trigger data generation, data preservation and data upload in the PLC; the monitoring program module is used to monitor the number of files produced and the number of files uploaded, and if the number of files produced and the number of files uploaded are inconsistent after exceeding the time limit, an alarm is issued; The data generated by the several automated equipment of the automated production line during production are organized into files through the corresponding PLC data upload management software module, and uploaded to the designated server based on the FTP protocol by the corresponding PLC FTP client.
