Automatic passing-station control method, device, electronic equipment and storage medium for silk ingots

By introducing the first PLC as the intermediate layer in the wire ingot automatic station passing control system and adopting an offline cache mechanism, the problem of slow station passing of the wire ingot on the chemical fiber production assembly line is solved, the production efficiency and system stability are improved, and human errors and downtime are reduced.

CN118884892BActive Publication Date: 2025-07-22ZHEJIANG HENGYI PETROCHEMICAL CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411371071.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-07-22
Estimated Expiration
2044-09-29

AI Technical Summary

Technical Problem

How to achieve rapid crossing of wire ingots on chemical fiber production assembly line, improve production efficiency and reduce human errors and downtime.

Method used

By introducing a first PLC as an intermediate layer in the wire ingot automatic station passing control system, communicating with the MES and multiple second PLCs, an offline cache mechanism is realized, ensuring that the station passing records can still be stored and synchronized when the PLC is disconnected from the MES, reducing data loss and manual intervention.

Benefits of technology

It improves the efficiency of wire ingots to pass through the station, reduces production interruptions caused by data synchronization problems, enhances the stability and reliability of the system, and reduces production costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118884892B_ABST
    Figure CN118884892B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, apparatus, electronic device and storage medium for automatic passing of silk ingots through stations, relating to the field of chemical fiber intelligent technology. The specific solution is as follows: The automatic passing of silk ingots through stations control system includes MES, a first PLC and multiple second PLCs; the method for automatic passing of silk ingots through stations includes: monitoring whether the control button of the first PLC is in the offline mode and whether the control button of the second PLC corresponding to the target station is in the online mode; in the case where the control button of the first PLC is in the offline mode and the control button of the second PLC corresponding to the target station is in the online mode, if the first PLC generates a passing through station indication information for the target station, then store the offline data in the offline cache area; wherein, the passing through station indication information is permission to pass through the station; wherein, the offline data is the passing through station record that needs to be synchronized to MES and is stored when the first PLC is disconnected from MES. According to the solution of the present disclosure, it is possible to realize the management of the offline passing through station records of the automatic caching of silk ingots and improve the passing through station efficiency of silk ingots.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of chemical fiber intelligent technologies, and particularly to a method, device, electronic device and storage medium for automatic passing - station control of silk ingots. Background Art

[0002] In the field of chemical fiber production, an efficient production line is the key to ensuring production capacity and efficiency. On this production line, there are multiple precisely coordinated workstations. Particularly important is the smooth flow of numerous silk ingots on the production line. Their passing - station speed is directly related to the overall production rhythm and efficiency, becoming one of the bottlenecks that cannot be ignored in improving production capacity. Therefore, how to achieve the rapid passing - station of silk ingots on the production line has become an important issue that urgently needs to be overcome in the current innovation of chemical fiber production technology. Summary of the Invention

[0003] The present disclosure provides a method, device, electronic device and storage medium for automatic passing - station control of silk ingots.

[0004] According to the first aspect of the present disclosure, there is provided a method for automatic passing - station control of silk ingots, which is applied to an automatic passing - station control system for silk ingots. The automatic passing - station control system for silk ingots includes a Manufacturing Execution System (MES), a first Programmable Logic Controller (PLC) and multiple second PLCs. Each of the second PLCs is used to control at least one workstation; the multiple second PLCs are respectively connected to the first PLC, and the first PLC can be connected to the MES; the method for automatic passing - station control of silk ingots includes:

[0005] Monitoring whether the control button of the first PLC is in the offline mode and whether the control button of the second PLC corresponding to the target workstation is in the online mode;

[0006] When the control button of the first PLC is in the offline mode and the control button of the second PLC corresponding to the target workstation is in the online mode, if the first PLC generates a passing - station instruction information for the target workstation, then store offline data in the offline cache area, where the offline data is the passing - station record that needs to be synchronized to the MES when the first PLC is disconnected from the MES; the passing - station instruction information is permission to pass the station.

[0007] According to the second aspect of the present disclosure, there is provided an automatic passing - station control device for silk ingots, which is applied to an automatic passing - station control system for silk ingots. The automatic passing - station control system for silk ingots includes MES, a first PLC and multiple second PLCs. Each of the second PLCs is used to control at least one workstation; the multiple second PLCs are respectively connected to the first PLC, and the first PLC can be connected to the MES; the automatic passing - station control device for silk ingots includes:

[0008] A monitoring module, configured to monitor whether the control button of the first PLC is in the offline mode and whether the control button of the second PLC corresponding to the target station is in the online mode;

[0009] A first control module, configured to, when the control button of the first PLC is in the offline mode and the control button of the second PLC corresponding to the target station is in the online mode, if the first PLC generates a passing station indication message for the target station, store offline data in the offline cache area, where the offline data is the passing station record that needs to be synchronized to the MES and is stored when the first PLC is disconnected from the MES; wherein, the passing station indication message is permission to pass the station.

[0010] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0011] At least one processor; and

[0012] A memory communicatively connected to the at least one processor; wherein,

[0013] The memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is enabled to execute any method in the embodiments of the present disclosure.

[0014] According to a fourth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute any method in the embodiments of the present disclosure.

[0015] According to the technology of the present disclosure, it is possible to realize the automatic caching and offline passing station record management of the silk ingots, and improve the passing station efficiency of the silk ingots.

[0016] It should be understood that the content described in the summary of the invention section is not intended to limit the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In combination with the accompanying drawings and with reference to the following detailed description, the above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent. In the drawings, the same or similar reference numerals denote the same or similar elements, where:

[0018] Figure 1 is a schematic diagram of the automatic passing station control system for silk ingots according to an embodiment of the present disclosure;

[0019] Figure 2 is a flowchart of the automatic passing station control method for silk ingots according to an embodiment of the present disclosure;

[0020] Figure 3 It is a schematic diagram of the processing flow of the first PLC caching offline data in the embodiments of the present disclosure;

[0021] Figure 4 It is a schematic diagram of the processing flow of returning an offline forced passing station indication message to the second PLC after the first PLC caches the offline data in the embodiments of the present disclosure;

[0022] Figure 5 It is a schematic diagram of the structure of the ingot automatic passing station control device in the embodiments of the present disclosure;

[0023] Figure 6 It is a block diagram of an electronic device for implementing the ingot automatic passing station control method in the embodiments of the present disclosure. Specific embodiments

[0024] The following describes exemplary embodiments of the present disclosure with reference to the accompanying drawings. Various details of the embodiments of the present disclosure are included to facilitate understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0025] Terms such as "first", "second", and "third" in the description embodiments, claims, and the above-mentioned accompanying drawings of the present disclosure are used to distinguish similar objects and do not necessarily describe a specific order or sequence. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a method, system, product, or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.

[0026] Before introducing the technical solutions of the embodiments of the present disclosure, further explanations will be made on the technical terms that may be used in the present disclosure:

[0027] MES: A software system for monitoring and managing the manufacturing process, capable of collecting, processing, and analyzing production data in real time to optimize production plans and resource allocation.

[0028] PLC: An industrial digital computer used to control automation equipment, such as mechanical devices and robots on a production line. It can perform logical operations and processing on input signals according to a preset program and output control signals to control the operation of the equipment.

[0029] Business data: Data related to business generated during the manufacturing process, such as equipment status, product quantity, production progress, etc. This data is the basis for MES and PLC to make decisions and controls.

[0030] Station passing instruction information (also known as station passing instruction): Instructions and parameter information generated by MES based on business data analysis to guide equipment to perform station passing tasks.

[0031] Figure 1 The schematic diagram of the automatic station passing control system for silk ingots is shown, as Figure 1 shown, the automatic station passing control system for silk ingots includes MES, a first PLC, and multiple second PLCs. The multiple second PLCs are respectively connected to the first PLC, and the first PLC is connected to MES. Each second PLC is responsible for controlling at least one workstation. Among them, the second PLC is mainly responsible for collecting and processing the real-time business data of the target workstation and providing it for the first PLC to use. The first PLC is responsible for interacting with the second PLC to obtain the second business data from the second PLC; the first PLC is also responsible for interacting with MES, sending the first business data to MES, and receiving the station passing instruction information issued by MES based on the first business data, and then notifying the second PLC to execute the station passing instruction information for the target workstation.

[0032] In some embodiments, MES is used to determine the station passing instruction information for the target workstation based on the first business data sent by the first PLC and return the station passing instruction information to the first PLC.

[0033] In some embodiments, the first PLC is used to obtain the first business data for the target workstation according to the second business data for the target workstation obtained from the second PLC.

[0034] In some embodiments, each second PLC is used to obtain and store the second business data of the target workstation under its control.

[0035] Here, the first business data is a data set collected and processed by the first PLC, including information such as the real-time status of the target workstation, the processing progress of the silk ingot, the quality inspection result of the silk ingot, and the request type. This data is of great significance for monitoring the operation status of the production line and making decisions on whether to allow passing the station.

[0036] Here, the second business data is a data set collected and processed by the second PLC, including information such as the real-time status of the target workstation, the processing progress of the silk ingot, the quality inspection result of the silk ingot, and the silk ingot barcode. This data is of great significance for monitoring the operation status of the production line.

[0037] The automatic silk ingot passing station control system of the embodiments of the present disclosure enables MES to monitor the status of each work station in real time and make adjustments and optimizations as needed through real-time communication and data processing among MES, the first PLC, and the second PLC. Through the above-mentioned automatic control, manual intervention is reduced, the efficiency and accuracy of the silk ingot passing station are improved; material waste and downtime caused by human errors are reduced, and the production cost is lowered. Through the above-mentioned automatic control, the stability and consistency of the silk ingot during the passing station process are ensured, which helps to improve the overall production rhythm and efficiency. By using the first PLC as the intermediate layer between MES and multiple second PLCs, the automatic silk ingot passing station control system has significant advantages in aspects such as centralized management, data integration, reducing the burden on MES, enhancing system scalability, improving security and stability, and simplifying the network structure.

[0038] If MES directly communicates with multiple second PLCs, then it will need to process a large amount of real-time data and requests, which may increase the burden on MES and affect its performance. By using the first PLC as the intermediate layer, MES only needs to communicate with the first PLC, thus reducing its processing burden. In the absence of the first PLC as the intermediate layer, MES needs to establish direct communication connections with each second PLC, which will make the network structure complex and difficult to manage. By using the first PLC for relay, the network structure can be greatly simplified, making the entire communication process clearer and more orderly. The first PLC can act as a security barrier to verify and filter the data from the second PLCs, preventing malicious data or incorrect data from entering the MES system. At the same time, the redundancy and fault tolerance mechanisms of the first PLC can improve the stability and reliability of the system, ensuring the normal operation of the production line even when some equipment fails.

[0039] As the production line expands and upgrades, more second PLCs may need to be added. If MES directly communicates with each second PLC, then corresponding configurations and modifications need to be made to MES every time there is an expansion. By using the first PLC as the intermediate layer, only the support for the new second PLC needs to be added in the first PLC, without modifying the configuration of MES. The first PLC can centrally receive the business data from multiple second PLCs and perform unified processing and analysis. This way makes the control of the entire production line more centralized and orderly, reducing the complexity and chaos of MES directly communicating with multiple second PLCs. The first PLC can integrate the data from different second PLCs to form a more comprehensive production view, which enables MES to make decisions based on more comprehensive data, thereby optimizing the production plan and resource allocation. At the same time, the first PLC can also preprocess and filter the data to reduce the amount of data transmitted to MES and improve the communication efficiency.

[0040] Embodiments of the present disclosure provide an automatic silk ingot passing station control method. Figure 2 FIG. Figure 2 is a schematic flowchart of the automatic silk ingot passing station control method according to an embodiment of the present disclosure. The automatic silk ingot passing station control method can be applied to an automatic silk ingot passing station control device, which is located on an electronic device, and the electronic device is applied to an automatic silk ingot passing station control system. The electronic device includes but is not limited to a fixed device and / or a mobile device. For example, the fixed device includes but is not limited to a server, and the server can be a cloud server or a general server. For example, the mobile device includes but is not limited to: mobile phones, tablet computers, laptop computers, etc. In some possible implementation manners, the automatic silk ingot passing station control method can also be implemented by a processor calling computer-readable instructions stored in a memory. As Figure 2 shown, the automatic silk ingot passing station control method includes:

[0041] S201: Monitor whether the control button of the first PLC is in the offline mode and whether the control button of the second PLC corresponding to the target station is in the online mode;

[0042] S202: When the control button of the first PLC is in the offline mode and the control button of the second PLC corresponding to the target station is in the online mode, if the first PLC generates a passing station indication information for the target station, store offline data in the offline cache area, where the offline data is the passing station record that needs to be synchronized to the MES when the first PLC is disconnected from the MES; wherein, the passing station indication information is permission to pass.

[0043] In some embodiments, the first PLC has two working modes. In the online mode, the first PLC is connected to the MES and can synchronize data to the MES in real time; in the offline mode, the first PLC is disconnected from the MES and cannot synchronize data to the MES in real time.

[0044] In some embodiments, the second PLC has two working modes. In the offline mode, the second PLC applies for forced passing; in the online mode, the second PLC performs passing processing according to the passing station indication information (permission to pass or prohibition to pass) sent by the MES or the first PLC.

[0045] In some embodiments, the offline cache area is a temporary storage area for storing data generated in the offline mode of the first PLC and to be synchronized to the MES.

[0046] In some embodiments, the system detects whether the working mode of the first PLC is in the offline mode and simultaneously detects whether the second PLC corresponding to the target station is in the online mode. This step ensures the accuracy and timeliness of data synchronization.

[0047] In some embodiments, when the first PLC is in the offline mode and the second PLC is in the online mode, if the first PLC generates a passing station indication message (i.e., permits passing the station) for the target station, offline data is stored in the offline cache area. The first PLC stores the passing station records (offline data) that need to be synchronized to the MES in the offline cache area. These offline data include, but are not limited to, the serial number of the silk ingot, the target station information, the passing station time, etc. When the first PLC reconnects to the MES or when the system-set time point arrives, the offline data in the offline cache area is synchronized to the MES system to ensure data integrity and consistency. After synchronization is completed, the status information of the relevant silk ingots in the MES system is updated, including their locations, processing progress, etc., for subsequent production management and scheduling.

[0048] In the technical solution of the embodiment of the present disclosure, when the control button of the first PLC is in the offline mode and the control button of the second PLC corresponding to the target station is in the online mode, if the first PLC generates a passing station indication message for the target station, offline data is stored in the offline cache area; thus, through the offline cache mechanism, even when the first PLC is disconnected from the MES, the temporary storage and subsequent synchronization of important data can be ensured, improving the efficiency and reliability of data synchronization. In the offline mode of the first PLC, a passing station indication message can still be generated for the target station, and the integrity of the data can be ensured through the offline cache mechanism, reducing production interruptions caused by data synchronization problems.

[0049] In some embodiments, if the first PLC generates a passing station indication message for the target station, storing offline data in the offline cache area includes: first sending the passing station indication message to the second PLC corresponding to the target station, so that the second PLC controls the target station to perform the silk ingot passing station task based on the passing station indication message, and then storing the offline data in the offline cache area.

[0050] In some embodiments, when the first PLC decides to generate a passing station indication message for the target station, it first sends this information to the second PLC directly corresponding to the target station through a network or communication line. After receiving the passing station indication message, the second PLC controls the target station to perform the corresponding silk ingot passing station task according to the preset logic and rules.

[0051] In some embodiments, simultaneously with or after sending the passing station indication message, the first PLC stores the offline data related to this passing station operation (such as the identification of the silk ingot, the passing station time, the target station information, etc.) in the offline cache area. These offline data are key information for subsequent synchronization to the MES when the first PLC is disconnected from the MES or unable to synchronize data in real time.

[0052] In this way, by first sending the passing station instruction information and then storing the offline data, even when the first PLC is disconnected from the MES, the continuous operation of the production line and the temporary storage of data can be ensured, enhancing the flexibility and reliability of the system. When the first PLC reconnects to the MES, it can quickly obtain and synchronize the previously stored offline data from the offline cache area, reducing the possibility of data loss and duplicate work, and improving the efficiency of data synchronization. By promptly sending the passing station instruction information and storing the offline data, it can be ensured that all links in the production process are closely connected, avoiding production stagnation or delays caused by waiting for data synchronization.

[0053] In some embodiments, if the first PLC generates passing station instruction information for a target station, storing offline data in the offline cache area includes: first storing the offline data in the offline cache area, and then sending the passing station instruction information to the second PLC corresponding to the target station.

[0054] In some embodiments, when the first PLC decides to generate passing station instruction information for a target station, it will first store the offline data related to this passing operation in the offline cache area. This is to ensure that even when disconnected from the MES or unable to synchronize data in real time, key production data can be properly saved.

[0055] In some embodiments, after storing the offline data, the first PLC will send the passing station instruction information to the second PLC corresponding to the target station through a network or communication line. This step is to enable the second PLC to control the target station to perform the corresponding ingot passing task based on this information.

[0056] In this way, the practice of storing the offline data first and then sending the passing station instruction information ensures that even if a communication failure or interruption occurs during the process of sending the instruction information, the offline data will not be lost, thereby improving data security. By storing the key data first and then triggering the next step of the production process, it can be ensured that the data flow on the production line is consistent with the physical flow, reducing production delays or errors caused by data asynchronization. This embodiment enables the system to still maintain a certain production capacity in the face of sudden situations such as network failures or system maintenance, enhancing the flexibility and resilience of the system.

[0057] In some embodiments, each second PLC collects and processes relevant second service data (such as ingot position, status, quantity, etc.) according to the status of the station it controls, and stores this data in the data storage area allocated for the station it is responsible for by the second PLC, such as a data block (Data Blocks, DB block).

[0058] In some embodiments, the first PLC obtains the second service data of each work station from each second PLC and generates the first service data for each work station. These first service data contain information about the status of all relevant work stations and the operations to be performed. The MES analyzes the first service data to determine the passing instruction information for the target work station (i.e., the work station that currently needs to perform the task of passing the silk ingot). The passing instruction information includes permission to pass or prohibition from passing. Among them, when the passing instruction information is permission to pass, it may also include parameters such as the specific time of passing, the target position, and the speed. The MES sends the generated passing instruction information to the first PLC through the network or other communication means such as the Management Interface (MI).

[0059] In some embodiments, after receiving the passing instruction information from the MES, the first PLC performs parsing and processing, extracts the specific control instructions and parameters. After the first PLC finishes parsing, it sends the parsing result (i.e., the specific control instructions and parameters) to the second PLC corresponding to the target work station through the communication interface or communication protocol. After receiving the parsing result, the second PLC controls the passing equipment such as the mechanical device or robot of the target work station to perform the task of passing the silk ingot according to the control instructions and parameters in the parsing result.

[0060] In some embodiments, when the system starts up, the communication protocol and parameters between the first PLC and the second PLC are configured to ensure stable communication between the two. The connection between the first PLC and the MES is configured to ensure that the first PLC can send the first service data to the MES and receive the passing instruction information returned by the MES. The first PLC actively obtains the second service data of the target work station (such as the current working status, the number of silk ingots to be processed, the processing time, etc.) from the second PLC corresponding to the target work station. After obtaining the second service data, the first PLC converts these data into the first service data (such as whether the passing condition is met, the estimated passing time, etc.) according to the preset algorithm or logic. If the connection between the first PLC and the MES is disconnected due to reasons (such as network failure, MES maintenance, etc.), the first PLC will automatically switch to the offline working mode. In this mode, the first PLC will record the first service data and send the passing instruction information (such as the "permission to pass" signal) to the second PLC. After receiving the passing instruction information, the second PLC will control the target work station to perform the task of passing the silk ingot, including moving the silk ingot to the next work station, updating the status information, etc. Once the connection between the first PLC and the MES is restored, the system can automatically synchronize the data and adjust the subsequent operations according to the latest instructions of the MES.

[0061] For example, assume that there are multiple workstations on the production line, and each workstation is responsible for different processing tasks. The first PLC regularly obtains the second business data of the current workstation from the second PLC. When the processing of the silk ingot at a certain workstation (such as the weighing workstation) is completed, it needs to enter the next process. At this time, if the MES system is temporarily unavailable, the first PLC will send the passing instruction information of "permission to pass" to the second PLC on behalf of the MES. Subsequently, the second PLC sends an instruction to the passing equipment (such as a conveyor belt or a manipulator) to transfer the processed silk ingot to the next workstation (such as the coil diameter measurement workstation) for subsequent processing.

[0062] The main types of silk ingots involved in the solution of the embodiment of the present disclosure may include one or more of partially oriented yarns (POY), fully drawn yarns (FDY), draw textured yarns (DTY) (or low elastic yarns), etc. For example, the types of silk may specifically include polyester partially oriented yarns, polyester fully drawn yarns, polyester drawn yarns, polyester draw textured yarns, polyester staple fiber (PSF), etc.

[0063] The technical solution of the embodiment of the present disclosure enables the MES to monitor the status of each workstation in real time and adjust and optimize the passing strategy as needed through real-time communication and data processing among the MES, the first PLC, and multiple second PLCs. Even when the first PLC is disconnected from the MES, the system can still operate independently and complete the passing task, enhancing the stability and reliability of the system. Through automated offline forced passing control, manual intervention is reduced, the speed and accuracy of the silk ingot passing are increased, and the production cost and time cost caused by human errors or delays are reduced.

[0064] In the embodiment of the present disclosure, the second PLC controls the target workstation to perform the silk ingot passing task based on the passing instruction information, including: when the passing instruction information is permission to pass, the second PLC notifies the passing equipment or directly controls the passing equipment to transfer the silk ingot processed at the target workstation to the next workstation of the target workstation.

[0065] Here, the passing equipment refers to the automated equipment used on the production line to transfer materials (such as silk ingots) between different workstations, such as conveyor belts, manipulators, automatic handling carts, etc. The above is only an exemplary description and does not limit all possible equipment included in the passing equipment. Here, an exhaustive list is not made.

[0066] In some embodiments, the passing indication information may include the evaluation result of whether the silk ingot at the target workstation meets the passing conditions by the first PLC, which is used to guide subsequent control operations.

[0067] In some embodiments, when the passing indication information is "permission to pass", the second PLC will send an instruction or signal to the passing equipment to notify it to prepare to transfer the silk ingot processed at the target workstation. After receiving the instruction from the second PLC, the passing equipment will transfer the silk ingot from the target workstation to the next workstation according to the preset program or path. During the transfer process, a series of actions such as grasping, handling, and placing the silk ingot may be involved, and these actions need to be precisely controlled to ensure the safe and accurate transfer of the silk ingot.

[0068] In some embodiments, the second PLC will continuously monitor the operating status of the passing equipment and the transfer situation of the silk ingot. Once the transfer is completed, the passing equipment will send a feedback signal to the second PLC to confirm that the current silk ingot has successfully reached the next workstation. The second PLC updates its internal status according to the feedback signal to prepare for subsequent control operations.

[0069] For example, assume that there are multiple workstations on the production line, and each workstation is responsible for different processing tasks. When the silk ingot at a certain workstation (such as the weighing workstation) is processed, the second PLC receives the parsing result of this workstation. Whether the parameters such as weight, specification, and batch number meet the requirements or not, as long as the forced passing variable = 1, it is determined as "permission to pass". Subsequently, the second PLC sends an instruction to the passing equipment (such as a conveyor belt or a manipulator) to transfer the processed silk ingot to the next workstation (such as the coil diameter measurement workstation) for subsequent processing.

[0070] In this way, through the first PLC and multiple second PLCs, the passing process of the silk ingot can be precisely controlled, reducing waiting time and manual intervention, and improving the overall efficiency of the production line; reducing errors caused by human factors, and improving the stability and reliability of the production process. The PLC programming is flexible and can quickly adjust the control logic according to production requirements to adapt to the processing of different types and specifications of silk ingots. The first PLC supports forced passing, which can not only greatly shorten the stay time of the silk ingot at the station, improve the overall smoothness of the production line, but also effectively reduce energy consumption and labor costs.

[0071] In an embodiment of the present disclosure, the automatic passing-station control method for the silk ingot further includes: when the first PLC detects that the control button corresponding to the first PLC is rotated to the offline mode, it determines that the first PLC is disconnected from the MES.

[0072] In some embodiments, the offline mode generally refers to a state where the system operates independently without communicating with the upper-level management system (such as MES). In this mode, the system can rely on its own logic and preset parameters to execute control tasks.

[0073] In some embodiments, the control button is a physical switch or knob for controlling the working mode of the first PLC. It is used to switch the working mode of the first PLC (such as the online mode or the offline mode). The offline mode is a specific position or mark on the control button. When the button is rotated to this position, it indicates that the offline mode is selected, which is used to actively interrupt the communication with the MES. The online mode is a specific position or mark on the control button. When the button is rotated to this position, it indicates that the online mode is selected, which is used when hoping to maintain communication with the MES.

[0074] In some embodiments, the first PLC continuously monitors the state of the control button directly connected to it. This button is usually installed on the control panel, allowing the operator to manually switch the working mode of the first PLC. When it detects that the control button is rotated to the "offline mode" position, the first PLC immediately records this event and considers that the connection with the MES has been or is about to be disconnected. It should be noted that this detection method mainly relies on hardware signals (such as the switch state of the button), so it is immediate and reliable. After determining the offline mode, the first PLC will obtain the second service data of the target station from the second PLC according to the established process and convert it into the first service data. Based on the processed first service data, the first PLC will decide whether to send a passing-station instruction message to the second PLC to control the passing-station task of the silk ingot. Generally, the first PLC will send a passing-station instruction message of "permission to pass the station" to the second PLC. The system should have the ability to handle various abnormal situations and automatically synchronize data or restore the connection with the MES when the conditions are restored.

[0075] Taking the automatic packaging line in the chemical fiber industry as an example, due to a network failure, the MES is temporarily unable to communicate with the first PLC. At this time, the operator can walk to the control panel where the first PLC is located and rotate the control button to the "offline mode". After the first PLC detects this change, it will automatically determine that the connection with the MES has been disconnected and immediately start the passing-station control process in the offline mode. Subsequently, the first PLC will send a passing-station instruction message of "permission to pass the station" to the second PLC to ensure that the silk ingot can smoothly move from the current station to the next station.

[0076] Thus, by introducing control buttons, it allows operators to directly intervene in the production process under specific circumstances, improving the flexibility of the system and its ability to respond to emergencies. By allowing the operator to manually switch the working mode of the first PLC, the system can quickly adjust its operating state according to actual needs, enhancing the flexibility and adaptability of the system. The status detection of the control buttons provides an intuitive indication of the connection status between the first PLC and MES, helping to promptly detect and handle connection problems, thereby improving the reliability of the system. In the case where MES is unavailable, the operator can simply rotate the control button to switch the first PLC to the offline mode, enabling the system to continue performing the passing station tasks, simplifying the operation process and reducing downtime.

[0077] In the embodiments of the present disclosure, the automatic passing station control method for the silk ingot further includes: when the first PLC detects a communication interruption between the first PLC and MES, it determines that the connection between the first PLC and MES is disconnected.

[0078] In some embodiments, communication interruption refers to a state in which, during the communication process, due to various reasons (such as network failures, equipment failures, signal interferences, etc.), the communication link is unable to transmit data normally.

[0079] In some embodiments, a communication status monitoring module is integrated inside the first PLC, and this module continuously monitors the communication link with MES. The monitoring content includes but is not limited to key indicators such as the success rate of data packet sending and receiving, communication delay, and timeout times. When it is detected that the communication link is abnormal (such as consecutive failures in sending multiple data packets, communication delay exceeding a preset threshold, timeout times reaching the upper limit, etc.), it is determined as a communication interruption. Once a communication interruption is determined, the first PLC immediately records this event and considers that the connection with MES has been disconnected. Subsequently, the first PLC will switch to the offline working mode. In the offline working mode, the first PLC continues to obtain the second service data of the target station from the second PLC and convert it into the first service data. Based on the processed first service data, the first PLC decides whether to send a passing station instruction message to the second PLC to control the passing station task of the silk ingot. When the first PLC detects that the communication link with MES has returned to normal, it automatically switches to the online working mode; in the online working mode, the first PLC will perform synchronization operations with MES to ensure the consistency and accuracy of the data.

[0080] Suppose on an automated production line, the first PLC is responsible for monitoring and managing the operating status of multiple spindle processing stations. One day, due to a network failure, the communication link between the first PLC and the MES is interrupted. The communication status monitoring module of the first PLC immediately detects this anomaly and determines it as a communication interruption. Subsequently, the first PLC automatically switches to the offline working mode and continues to obtain business data from the second PLC and control the passing tasks of the spindles. When the network failure is resolved and the communication link returns to normal, the first PLC synchronizes with the MES again to ensure data consistency and accuracy.

[0081] In this way, by automatically detecting communication interruptions and switching to the offline working mode, the system can continue to execute control tasks when the MES is unavailable without manual intervention, improving the automation level of the system. The automatic detection and handling mechanism for communication interruptions enables the system to handle various communication failures, enhancing the stability and reliability of the system. After the communication is restored, the system can automatically synchronize data and resume the normal working state, reducing the downtime caused by communication problems.

[0082] In the embodiments of the present disclosure, the automatic spindle passing control method further includes: when the MES is disconnected from the first PLC, the MES does not perform the judgment and processing of the online passing conditions.

[0083] In some embodiments, when there is a communication interruption between the MES and the underlying control system, the MES takes a series of alternative processing measures to maintain the normal operation of the system, and these measures may not rely on real-time data.

[0084] In some embodiments, the judgment and processing of the online passing conditions include: the process in which the MES evaluates and analyzes the received business data according to preset rules and algorithms to determine whether to allow the target station to perform the passing operation. These conditions may include various factors such as production plans, equipment status, and material supply situations.

[0085] In some embodiments, when the MES receives the first business data sent by the first PLC, it first performs data reception and preliminary verification. If the data format is correct and contains valid forced passing variables, the MES will record these data completely in its internal database or log system for subsequent data traceability. The recorded content may include all or part of the key fields of the first business data, as well as information such as the timestamp of the received data. Under normal circumstances, the MES will judge and process the received business data according to preset rules and algorithms to decide whether to allow the target station to pass.

[0086] In some embodiments, a stable communication connection is established between the MES and the first PLC, and the status of this connection is continuously monitored. When the first PLC detects a communication interruption with the MES, it will notify the MES through a preset communication protocol or heartbeat mechanism. After receiving the communication interruption notice from the first PLC, the MES immediately recognizes that the current connection status with the first PLC is disconnected. The MES then stops executing any online in-process condition judgment processing that depends on real-time communication with the first PLC. The MES may initiate an offline processing strategy, which may include recording the communication interruption event, sending an alert to the system administrator, and performing a certain degree of predictive processing according to preset rules or historical data (if applicable). However, in any case, the MES will not perform any online in-process condition judgment that requires real-time data acquisition from the first PLC. When the first PLC detects the restoration of communication with the MES, it will notify the MES again. After receiving the notice of communication restoration, the MES will re-establish the communication connection with the first PLC and resume executing the judgment processing of the online in-process conditions.

[0087] Taking the automatic packaging line in the chemical fiber industry as an example, the MES is responsible for monitoring the entire production process and judging whether the silk ingots meet the in-process conditions based on real-time data. However, due to a network failure, the communication between the MES and the first PLC is suddenly interrupted. At this time, the MES immediately stops executing the judgment processing of the online in-process conditions and records this event through the system log. At the same time, the system administrator receives an alert of the communication interruption and immediately starts troubleshooting. After the fault is resolved and the communication is restored, the MES re-establishes the connection with the first PLC and continues to execute the judgment processing of the online in-process conditions.

[0088] In this way, during the communication interruption, the MES does not perform unnecessary online in-process condition judgments, thereby reducing the consumption of computing resources. By avoiding processing that depends on real-time data during communication interruption, potential problems caused by data inconsistency or errors in the system are reduced. The system administrator can receive an alert of the communication interruption in a timely manner and intervene as needed, thereby improving the maintainability of the system and the user experience.

[0089] In the embodiments of the present disclosure, the judgment processing of the online in-process conditions may include: determining whether the silk ingots at the target station meet the in-process conditions based on the target string data corresponding to the target station, where the target string data is obtained by the MES parsing the first service data; if the in-process conditions are met, it is determined that the in-process indication information is permission to pass; if the in-process conditions are not met, it is determined that the in-process indication information is prohibited from passing.

[0090] In some embodiments, the in-process indication information is used to indicate whether the silk ingots on the production line can continue to be transferred to the next station for processing. According to the judgment result of the in-process conditions, the in-process indication information can be "permission to pass" or "prohibited from passing".

[0091] In some embodiments, MES first receives the first service data sent from the first PLC. This data typically includes status information about the target workstation on the production line, the processing progress of the silk ingot, the quality inspection results, and how many times the passing request has been made. A dedicated data parsing module is set inside MES to parse the received first service data to extract the target string data corresponding to the target workstation. This target string data may be encoded and represents specific working states or attributes.

[0092] In some embodiments, based on the parsed target string data, MES further conducts a comparative analysis with the preset passing conditions. These passing conditions may include whether the processing quality of the silk ingot meets the standard, whether all processing tasks at the current workstation have been completed, whether there are equipment failures or production anomalies, etc. If the silk ingot at the target workstation meets all the preset passing conditions, MES determines that the passing instruction information is "permitted to pass", indicating that the silk ingot can be safely transferred to the next workstation for further processing. If the silk ingot at the target workstation does not meet any of the passing conditions, MES determines that the passing instruction information is "forbidden to pass" and may trigger the corresponding alarm mechanism to notify the on-site personnel for inspection and handling.

[0093] In some embodiments, MES takes the determination result (permitted to pass or forbidden to pass) as the passing instruction information and sends it to the second PLC or other relevant control devices through the communication interface. These passing devices execute the corresponding control logic according to the received passing instruction information, such as starting or stopping the transfer action of the silk ingot.

[0094] Taking the automatic packaging line in the chemical fiber industry as an example, when the first PLC detects that the processing of the silk ingot at a certain workstation (such as the weighing workstation) is completed, it will send the first service data containing the status information of this workstation to MES. After receiving the data, MES first parses the target string data (such as the QR code and weight information of the passing request silk ingot), and then compares it with the preset passing conditions (such as whether the weight of the silk ingot of this specification is within the allowable range, Grade A: within the allowable range, Grade B: light weight, Grade C: heavy weight). If the quality grade of the silk ingot is Grade A, MES determines that the passing instruction information is "permitted to pass" and notifies the second PLC to start the transfer action of the silk ingot; if the quality grade of the silk ingot is Grade B or Grade C, it is determined as "forbidden to pass" and the alarm mechanism is triggered.

[0095] Thus, through the parsing of the first business data by the MES and the accurate judgment of the passing conditions, it can be ensured that only the spindles meeting the requirements can continue to be transferred, thereby improving the accuracy and reliability of production. Timely detecting and preventing the transfer of spindles that do not meet the passing conditions can reduce abnormal situations in the production process, such as equipment failures, quality problems, etc., thus reducing production risks. By automatically judging and indicating the passing information, it is possible to reduce manual intervention and waiting time and improve the overall operating efficiency of the production line.

[0096] In the embodiments of the present disclosure, the first PLC obtains the second business data of the target station from the second PLC corresponding to the target station, including: the first PLC regularly obtains the second business data of the target station from the second PLC.

[0097] In some embodiments, a timer is set in the first PLC to control the time interval for data acquisition. This time interval can be adjusted according to the actual requirements of the production line to ensure that the latest data can be obtained in a timely manner without increasing the burden on the system due to overly frequent data exchanges. When the timer reaches the set time point, the first PLC sends a data request signal to the second PLC. This signal contains information such as the data type to be acquired and the target station identifier, so that the second PLC can accurately return the corresponding data.

[0098] In some embodiments, after receiving the data request from the first PLC, the second PLC retrieves the second business data of the target station from its own database or real-time data cache according to the information in the request and sends it to the first PLC through the communication interface. These data may include the real-time status of the target station, the processing progress, the quality inspection results, etc.

[0099] In some embodiments, after obtaining the second business data, the first PLC parses and processes it to extract the information required for subsequent decision-making or control operations. At the same time, these data may also be used to update the relevant data in the MES or generate reports.

[0100] Thus, by regularly obtaining the second business data of the target station from the second PLC, it is possible to achieve real-time monitoring of the production line status, ensuring the transparency and traceability of the production process. Based on the real-time data, the MES or the first PLC can timely detect abnormal situations in the production process and take corresponding adjustment measures, such as stopping passing, adjusting process parameters, etc., to improve production efficiency and product quality. Through the analysis of historical data and real-time data, it can provide strong support for the optimization decision-making of the production line, such as predicting production trends and optimizing production plans.

[0101] In some embodiments, in the automatic passing-station control system of the silk ingot, the first PLC is responsible for generating the first service data of the target station according to the second service data of the target station. These data may include various types of information, such as status codes, numerical parameters, timestamps, etc. The first PLC is internally configured with a preset data storage format to ensure efficient data exchange and parsing between different PLCs or between the PLC and the MES. The first PLC converts the second service data according to this preset format. The conversion process may include data type conversion (such as integer to floating-point), data unit unification (such as conversion from millimeters to inches), data encoding decoding (such as base conversion), etc. The converted data is the first service data, which follows the preset data storage format for subsequent processing and transmission. The first PLC assigns a dedicated data storage area for each target station on the production line. The first service data is stored in the data storage area corresponding to the target station. When storing, different variables (such as status codes, numerical parameters, etc.) are assigned to different fixed addresses in the storage area. When it is necessary to read or modify the value of a certain variable, it can be directly accessed through its corresponding address, improving the efficiency of data processing.

[0102] In this way, through the preset data storage format and the format conversion process, the consistency and accuracy of data from different sources during the exchange and processing are ensured. Assigning fixed storage addresses for each variable simplifies the data access and processing process, improving the overall performance of the system. The allocation and format definition of the data storage area have a certain degree of flexibility and can be extended and adjusted according to the actual needs of the production line.

[0103] In some embodiments, the automatic passing-station control method for the silk ingot further includes: the first PLC assigns multiple offline cache areas and an offline control area for all target stations. The multiple offline cache areas are shared by all target stations. The offline control area includes relevant data bits and control bits for synchronizing offline data to the MES.

[0104] Here, the offline cache area is a specific area divided in the first PLC or other storage devices for storing the data to be synchronized when the communication between the first PLC and the MES is interrupted.

[0105] Here, the offline control area is a dedicated area set in the second PLC, containing relevant data bits and control bits for controlling the offline data synchronization process.

[0106] In some embodiments, the first PLC assigns multiple shared offline cache areas for all target stations. These areas are used to store the offline data generated by each station during the interruption of the communication between the PLC and the MES, such as passing-station records, production parameters, etc.

[0107] In some embodiments, a dedicated offline control area is set up in the first PLC, which contains relevant data bits and control bits for controlling the offline data synchronization process. These data bits and control bits are used to store key information such as synchronization status, target MES address, synchronization priority, etc., to ensure that offline data can be accurately and orderly synchronized to the MES system.

[0108] In some embodiments, when the communication between the first PLC and the MES is interrupted, the offline data generated by each target workstation will be automatically stored in the shared offline cache area. At the same time, the relevant data bits and control bits in the offline control area will be updated to reflect the current synchronization status and priority. Once the communication between the first PLC and the MES is restored, the first PLC will check the status information in the offline control area and decide which offline data needs to be synchronized to the MES system according to the priority and synchronization policy. Then, the first PLC will send the offline data from the cache area to the MES system according to the predetermined format and protocol.

[0109] In some embodiments, after receiving the offline data, the MES system will perform verification and confirmation. Once the data is successfully received and processed, the MES system will send a synchronization confirmation signal to the first PLC. After receiving the confirmation signal, the first PLC will update the status information in the offline control area and clean up the synchronized offline data to release the cache space for subsequent use.

[0110] In this way, by allocating a shared offline cache area for all target workstations, it can ensure that the key data generated during the communication interruption is properly saved, avoiding the impact on production caused by data loss. The setting of the offline control area enables the PLC to flexibly control the offline data synchronization process, including synchronization priority, target MES address, etc., so as to meet the requirements of different production scenarios. Once the communication is restored, the PLC can quickly synchronize the offline data to the MES system, ensuring that the management can grasp the production status in real time and make a quick response, thereby improving production efficiency. Through the synchronization confirmation and cleaning mechanism, it can ensure that the synchronized offline data is deleted from the cache area in time, avoiding occupying too much storage space resources.

[0111] Next, taking IT-PLC to represent the first PLC and ME-PLC to represent the second PLC as an example, the processing flow of the first PLC as the intermediate layer between the MES and the second PLC will be described.

[0112] Figure 3 The schematic diagram of the processing flow of the first PLC caching offline data is shown, as Figure 3 shown, and this process includes:

[0113] S301: System startup;

[0114] S302: Is DB6101.MI_RESPONSE.AVI_RESPONSE1 equal to an empty string? If not, execute S303; if yes, execute S308;

[0115] Here, 6101 is the number of the target station, and DB6101 represents the DB block allocated by the ME-PLC for the station numbered 6101. DB6101.MI_RESPONSE.AVI_RESPONSE1 represents the variable allocated by the ME-PLC for the station numbered 6101 and used to store the MES write response message.

[0116] If DB6101.MI_RESPONSE.AVI_RESPONSE1 ≠ an empty string, it means that the previous request has not been completed yet. At this time, S303 will be executed.

[0117] S303: The IT-PLC parses RESPONSE1 into IT_RES_1 and then executes S304;

[0118] Here, IT_RES_1 (abbreviation of IT_MSG.UDT_IT_MSG_1.IT_RES_1) represents the storage location where the IT-PLC parses the MES response information according to the rules.

[0119] S304: Does IT_RES_1 contain an error code? If yes, execute S305; if no, execute S319;

[0120] Here, EC is usually used to represent Error Code, that is, the error code.

[0121] S305: Send IT_RES_1 containing the error code to the ME-PLC side through the PUT instruction;

[0122] S306: Is ERROR in the PUT instruction equal to 0? If not, execute S307; if yes, execute S326;

[0123] S307: Call FB64001 to write the error code 3560 and then return to S305;

[0124] Here, FB64001 is a module integrated with the function of writing various error codes such as 3560.

[0125] Here, 3560 means that ERROR in the PUT instruction ≠ 0, that is, the PUT instruction execution has an error.

[0126] S308: The IT-PLC periodically obtains ME_CTRL_WRD from the corresponding station DB block of the ME-PLC.

[0127] Here, ME_CTRL_WRD represents the control bit of the target station.

[0128] It should be noted that the ME_MSG.ME_AVI_MSG in the corresponding station DB block of the ME-PLC should be verified on the ME-PLC side to ensure the integrity and accuracy of the data.

[0129] For example, obtain ME_CTRL_WRD from DB6101.ME_MSG.ME_CTRL_WRD. Here, 6101 is the number of the target station, and DB6101.ME_MSG represents the DB block allocated by the ME-PLC for the station numbered 6101. DB6101.ME_MSG.ME_CTRL_WRD is the variable in the DB block allocated by the ME-PLC for the station numbered 6101 and used to store the control bit of this station.

[0130] S309: Is DB6101.ME_MSG.ME_CTRL_WRD.ASSY_COMPLETE_FORCE = 1? If so, execute S310; otherwise, continue to execute S309;

[0131] Here, the IT-PLC obtains ME_CTRL_WRD.ASSY_COMPLETE_FORCE from the DB block of the corresponding station of the ME-PLC.

[0132] Here, ME_CTRL_WRD.ASSY_COMPLETE_FORCE = 1 indicates that the ME-PLC has set to start forced passing of the station.

[0133] DB6101.ME_MSG.ME_CTRL_WRD.ASSY_COMPLETE_FORCE is the variable in the DB block allocated by the ME-PLC for the station numbered 6101 and used to store that the ME-PLC has set to start forced passing of the station.

[0134] S310: The IT-PLC sets the control bit and clears the data buffer to ensure that the current process is not affected by the residual data of other processes, and then executes S311;

[0135] S311: The IT-PLC obtains ME_AVI_TAG from the corresponding station DB block of the ME-PLC;

[0136] For example, obtain ME_AVI_TAG from DB6101.ME_MSG.ME_AVI_TAG. Here, 6101 is the number of the target work station. DB6101.ME_MSG represents the DB block allocated by the ME-PLC for the work station numbered 6101. DB6101.ME_MSG.ME_AVI_MSG represents the variable allocated by the ME-PLC for the work station numbered 6101 and used to store the second service data written by the ME-PLC. ME_MSG.ME_AVI_MSG represents the second service data written by the ME-PLC, such as the spindle QR code information and the request type.

[0137] The ME_MSG.ME_AVI_TAG written by the ME-PLC to the DB block corresponding to its work station should be verified on the ME-PLC side to check if it is written correctly.

[0138] S312: Is ERROR = 0 in the GET instruction? If not, execute S313; if so, execute S314;

[0139] Here, the GET instruction is the instruction for the IT-PLC to obtain ME_AVI_TAG from the DB block corresponding to the ME-PLC work station.

[0140] S313: Call FB64001 to write the error code 3539, and then return to S311;

[0141] Here, FB64001 is a module integrated with the function of writing various error codes such as 3539.

[0142] Here, 3539 indicates that ERROR ≠ 0 in the GET instruction.

[0143] S314: The IT-PLC sets DB6101.IT_MSG.IT_CTRL_WRD.ASSY_COMPLETE_RECEIVED, and then executes S315;

[0144] Here, DB6101.IT_MSG represents the DB block allocated by the IT-PLC for the work station numbered 6101. DB6101.IT_MSG.IT_CTRL_WRD.ASSY_COMPLETE_RECEIVED represents the variable allocated by the IT-PLC for the work station numbered 6101 and used to store the message of "the IT-PLC confirms that it has received the message that the ME-PLC has set to start forced passing through the station" in the DB block.

[0145] Here, IT_MSG.IT_CTRL_WRD.ASSY_COMPLETE_RECEIVED represents the message that the IT-PLC confirms that it has received the message that the ME-PLC has set to start forced passing through the station.

[0146] S315: The conditions for implementing offline caching need to be met simultaneously: the IT-PLC runs in the "offline" mode; STATION_CFG.TR = 1; WITH_PLC = 1; AUTO_MODE = 1.

[0147] Here, the offline condition: the IT-PLC control button is rotated to the offline mode, or the communication between the IT-PLC and the MES is interrupted.

[0148] STATION_CFG.TR = 1 indicates that passing records are enabled for the current station.

[0149] WITH_PLC = 1 indicates that the IT-PLC is in the online mode, that is, the communication between the IT-PLC and the ME-PLC is normal;

[0150] AUTO_MODE = 1 indicates that the ME-PLC is in the online mode.

[0151] Here, the IT-PLC reads AUTO_MODE from DB6101.ME_MSG.ME_CTRL_WRD.AUTO_MODE of the ME-PLC.

[0152] S316: Count the number of times the offline switch is toggled;

[0153] Here, Count1 represents the number of times the offline switch is toggled.

[0154] S317: Is Count1 = 1 and Count2 = 0? If not, execute S318; if so, execute S319;

[0155] Here, Count2 represents the number of times of forced offline passing. Count2 = 0 indicates that the number of times of forced offline passing is equal to 0.

[0156] S318: Call FC64023 to initialize the offline cache area DB6241 - DB6248, and then execute S319;

[0157] Here, FC64023 is a module integrated with the function of initializing the offline cache area.

[0158] Here, DB6241 - DB6248 are eight DB blocks allocated by the IT-PLC for all DB blocks to store offline data. It can be understood that the numbers and quantities of the DBs representing the offline cache area can be set or adjusted according to requirements.

[0159] S319: Call FC64007 to synthesize MI;

[0160] Here, FC is a custom function module. FC64007 is the function module number used to synthesize MI.

[0161] Here, MI represents the response string generated by the IT-PLC instead of the MES.

[0162] S320: Is the MI length = 78? If no, execute S321; if yes, execute S325;

[0163] Here, 78 is the pre-set length rule of the response string, and the length of MI needs to meet the length rule.

[0164] S321: Write the error code 3568 to IT_RES_1, and then execute S322;

[0165] Here, 3568 indicates that the length of the MI generated by the IT-PLC is not equal to 78.

[0166] S322: Send IT_RES_1 containing the error code to the ME-PLC side through the PUT instruction, and then execute S323;

[0167] S323: Is ERROR = 0 in the PUT instruction? If no, execute S324; if yes, execute S326;

[0168] S324: Call FC64017 to store the offline-processed message in the offline cache area;

[0169] Here, FC is a custom function module. FC64017 is the function module number used to store the offline-processed message in the offline cache area.

[0170] S325: The IT-PLC generates the response data corresponding to IT_RES_1;

[0171] Here, generating the response data corresponding to IT_RES_1 includes:

[0172] DB6101.IT_MSG.UDT_IT_MSG_1.IT_RES_1.RESPONSE_YARN1 = DB6101.ME_MSG.ME_AVI_MSG.REQUEST_TARN;

[0173] DB6101.IT_MSG.UDT_IT_MSG_1.IT_RES_1.RESPONSE_RESULT = 1;

[0174] DB6101.IT_MSG.UDT_IT_MSG_1.IT_RES_1.RESPONSE_ERROR = 0.

[0175] Here, RESPONSE_YARN1 and REQUEST_TARN represent the spindle QR code information of the received passing station request.

[0176] Here, RESPONSE_RESULT = 1 indicates that the result of this passing station is normal.

[0177] Here, RESPONSE_ERROR = 0 indicates that the error code for this passing station is 0. Here, IT_RES_1 constructed in the offline state is normal passing point information, mainly constructed with correct result (RESPONSE_RESULT) and error-free result (RESPONSE_ERROR).

[0178] S326: The IT-PLC clears and resets the control bit corresponding to this station and resets the service data area corresponding to this station; then returns to S302.

[0179] Here, the IT-PLC clearing and resetting the corresponding control bit may include:

[0180] DB6101.IT_MSG.UDT_IT_MSG_1.IT_CTRL_WRD.ASSY_COMPLETE_RECEIVED = 0;

[0181] DB6101.IT_MSG.UDT_IT_MSG_1.IT_CTRL_WRD.MES_COMPLETE = 0.

[0182] Among them, DB6101.IT_MSG represents the data cache area in the DB block allocated by the ME-PLC for the station numbered 6101 and used to store various variables.

[0183] Among them, IT_CTRL_WRD.ASSY_COMPLETE_RECEIVED represents the variable for confirming the receipt of the ME-PLC setting to start passing the station.

[0184] Among them, IT_CTRL_WRD.MES_COMPLETE represents that the IT-PLC notifies the ME-PLC that the data processing has been completed.

[0185] Here, the IT-PLC resetting the corresponding service data area includes:

[0186] Calling FC64006 to reset DB6101.ME_AVI_MSG;

[0187] DB6101.IT_MSG.UDT_IT_MSG_1.IT_RES_1.RESPONSE_YARN1 = '';

[0188] DB6101.IT_MSG.UDT_IT_MSG_1.IT_RES_1.RESPONSE_RESULT = 0;

[0189] DB6101.IT_MSG.UDT_IT_MSG_1.IT_RES_1.RESPONSE_ERROR = 0.

[0190] Here, FC64006 is a module integrated with the function of resetting ME_AVI_MSG.

[0191] At Figure 3 Based on Figure 4 After the first PLC caches the offline data, a schematic diagram of the processing flow for returning the offline forced passing station indication information to the second PLC is shown, as Figure 4 Shown, this process includes:

[0192] S327: RFIDTAG ≠ empty string? If no, execute S328; if yes, execute S332;

[0193] Here, RFIDTAG ≠ empty string means there is spindle data in RFIDTAG.

[0194] S328: Write the error code 3561 to IT_RES_1, and then execute S329;

[0195] Here, 3561 means RFIDTAG is empty.

[0196] S329: Send IT_RES_1 containing the error code to the ME-PLC side through the PUT instruction, and then execute S331;

[0197] S330: Is ERROR = 0 in the PUT instruction? If no, execute S331; if yes, execute S326;

[0198] S331: Call FB64001 to write the error code 3562, and then return to S329;

[0199] Here, 3562 means RFIDTAG is empty and ERROR ≠ 0 in the PUT instruction.

[0200] S332: Call FC64001 to parse the spindle information from RFIDTAG;

[0201] Here, FC is a custom function module. FC64001 is the function module number used to parse the spindle information from RFIDTAG.

[0202] S333: Call FC60157 to update the pipeline queue;

[0203] Here, FC60157 is a module that integrates the function of the update pipeline queue.

[0204] S334: The IT-PLC outputs the IT_RES_1 information to the ME-PLC;

[0205] S335: Is ERROR = 0 and STATUS = 0000H in the PUT instruction? If not, execute S336; if so, execute S337;

[0206] Here, ERROR = 0 indicates that there is no error in the PUT instruction. STATUS = 0000H indicates that the status value = 0, and H represents hexadecimal. The PUT instruction is an instruction for the IT-PLC to send data to the ME-PLC.

[0207] S336: Call FB64001 to write the error code 3565;

[0208] Here, FB64001 is a module that integrates the function of writing error codes such as 3565. 3565 indicates that ERROR ≠ 0 or STATUS ≠ 0000H.

[0209] S337: Set DB6101.IT_MSG.IT_CTRL_WRD.MES_COMPLETE;

[0210] DB6101.IT_MSG.IT_CTRL_WRD.MES_COMPLETE is a variable in the DB block allocated by the IT-PLC for the station numbered 6101 and is used to store the variable that the IT-PLC notifies the ME-PLC that the data processing has been completed.

[0211] Here, IT_MSG.IT_CTRL_WRD.MES_COMPLETE indicates that the IT-PLC notifies the ME-PLC that the data processing has been completed.

[0212] S338: Is DB6101.ME_MSG.ME_CTRL_WRD.MES_COMPLETE or ME_CTRL_WRD.ME_RESET = 1? If so, execute S326; if not, continue to execute S338;

[0213] Here, ME_MSG.ME_CTRL_WRD.MES_COMPLETE = 1 indicates that the variable that the IT-PLC notifies the ME-PLC that the data processing has been completed is set.

[0214] Here, ME_CTRL_WRD.ME_RESET = 1 indicates that after the spindle on the ME-PLC controlled station has completed passing through the station, its control position for that station is set.

[0215] Here, resetting DB6101.ME_AVI_MSG is considered to continue the previous data processing process when the condition is accidentally triggered.

[0216] It should be noted that the above-mentioned station numbers, error code numbers, DB block numbers, variable names, storage address names, FC function module names, and FB function module names are merely exemplary rather than restrictive, and can all be set or adjusted according to actual needs.

[0217] It should be understood that Figure 1 、 Figure 3 、 Figure 4 the schematic diagrams shown are merely exemplary rather than restrictive, and they are extensible. Those skilled in the art can make various obvious changes and / or substitutions based on the examples of Figure 1 、 Figure 3 、 Figure 4 and the resulting technical solutions still fall within the scope of the disclosure of the embodiments of the present disclosure.

[0218] The embodiments of the present disclosure provide an automatic silk bobbin passing station control device, which is applied to an automatic silk bobbin passing station control system. The automatic silk bobbin passing station control system includes MES, a first PLC, and multiple second PLCs. The multiple second PLCs are respectively connected to the first PLC, and the first PLC is connected to MES; wherein, each second PLC is used to control at least one station; as Figure 5 shown, the automatic silk bobbin passing station control device may include: a monitoring module 501, configured to monitor whether the control button of the first PLC is in the offline mode and whether the control button of the second PLC corresponding to the target station is in the online mode; a first control module 502, configured to, when the control button of the first PLC is in the offline mode and the control button of the second PLC corresponding to the target station is in the online mode, if the first PLC generates a passing station indication information for the target station, store offline data in the offline cache area, where the offline data is the passing station record that needs to be synchronized to MES when the first PLC is disconnected from MES; wherein, the passing station indication information is permission to pass.

[0219] In some embodiments, the first control module 502 is configured to: first send the passing station indication information to the second PLC corresponding to the target station, so that the second PLC controls the target station to execute the silk bobbin passing station task based on the passing station indication information, and then store the offline data in the offline cache area.

[0220] In some embodiments, the first control module 502 is configured to: first store the offline data in the offline cache area, and then send the passing station indication information to the second PLC corresponding to the target station, so that the second PLC controls the target station to execute the silk bobbin passing station task based on the passing station indication information.

[0221] In some embodiments, the automatic passing - station control device for the silk ingot further includes a first judgment module ( Figure 5 not shown in the figure), wherein the first judgment module is used for: when the first PLC detects that the control button corresponding to the first PLC rotates to the offline mode, determining that the first PLC is disconnected from the MES.

[0222] In some embodiments, the automatic passing - station control device for the silk ingot further includes a second judgment module ( Figure 5 not shown in the figure), wherein the second judgment module is used for: when the first PLC detects a communication interruption between the first PLC and the MES, determining that the first PLC is disconnected from the MES.

[0223] In some embodiments, the automatic passing - station control device for the silk ingot further includes a second control module ( Figure 5 not shown in the figure), wherein the second control module is used for: when the MES is disconnected from the first PLC, the MES does not perform the judgment process of the online passing - station condition.

[0224] In some embodiments, the automatic passing - station control device for the silk ingot further includes a third control module ( Figure 5 not shown in the figure), wherein the third control module is used for: based on the target string data corresponding to the target work - station, determining whether the silk ingot at the target work - station meets the passing - station condition; if it meets the passing - station condition, determining that the passing - station indication information is permission to pass; if it does not meet the passing - station condition, determining that the passing - station indication information is prohibited from passing; the target string data is obtained by the MES parsing the first service data; wherein, the first service data is obtained according to the second service data, and the second service data is the service data obtained by the first PLC from the second PLC corresponding to the target work - station.

[0225] In some embodiments, the automatic passing - station control device for the silk ingot further includes a fourth control module ( Figure 5 not shown in the figure), wherein the fourth control module is used for: the first PLC allocates multiple offline cache areas and an offline control area for all target work - stations, the multiple offline cache areas are shared by all target work - stations, and the offline control area includes relevant data bits and relevant control bits for synchronizing offline data to the MES.

[0226] Those skilled in the art should understand that the functions of the various processing modules in the automatic passing - station control device for the silk ingot in the embodiments of the present disclosure can be understood with reference to the relevant descriptions of the foregoing automatic passing - station control method for the silk ingot. The various processing modules in the automatic passing - station control device for the silk ingot in the embodiments of the present disclosure can be implemented by an analog circuit that realizes the functions of the embodiments of the present disclosure, or can also be implemented by the operation of software that executes the functions of the embodiments of the present disclosure on an electronic device.

[0227] The automatic silk ingot passing station control device according to the embodiments of the present disclosure can realize the automatic caching, offline passing station record management of silk ingots, and improve the passing station efficiency of silk ingots.

[0228] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.

[0229] Figure 6 It is a structural block diagram of an electronic device according to an embodiment of the present disclosure. As Figure 6 shown, the electronic device includes: a memory 610 and a processor 620. The memory 610 stores a computer program that can run on the processor 620. The number of the memory 610 and the processor 620 can be one or more. The memory 610 can store one or more computer programs. When the one or more computer programs are executed by the electronic device, the electronic device executes the method provided in the above method embodiment. The electronic device may further include: a communication interface 630, configured to communicate with external devices and perform data interaction and transmission.

[0230] If the memory 610, the processor 620, and the communication interface 630 are implemented independently, the memory 610, the processor 620, and the communication interface 630 can be connected to each other through a bus and complete communication with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 6 only a thick line is shown in the figure, but it does not mean that there is only one bus or one type of bus.

[0231] Optionally, in a specific implementation, if the memory 610, the processor 620, and the communication interface 630 are integrated on a chip, the memory 610, the processor 620, and the communication interface 630 can complete communication with each other through an internal interface.

[0232] It should be understood that the above-mentioned processor may be a Central Processing Unit (CPU), or it may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor that supports the Advanced RISC Machines (ARM) architecture.

[0233] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory may include a Random Access Memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Date SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct RAMBUS RAM (DR RAM).

[0234] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present disclosure are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, Bluetooth, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., Digital Versatile Disc (DVD)), or a semiconductor medium (e.g., Solid State Disk (SSD)), etc. It should be noted that the computer-readable storage medium mentioned in the present disclosure can be a non-volatile storage medium, in other words, a non-transitory storage medium.

[0235] Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, or can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium, and the storage medium mentioned above can be a read-only memory, a magnetic disk, or an optical disc, etc.

[0236] In the description of the embodiments of the present disclosure, the descriptions referring to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples" mean 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 disclosure. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples.

[0237] In the description of the embodiments of the present disclosure, unless otherwise specified, " / " means "or". For example, A / B may mean A or B. The "and / or" herein is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B may mean: A exists alone, A and B exist simultaneously, and B exists alone.

[0238] In the description of the embodiments of the present disclosure, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present disclosure, unless otherwise specified, "a plurality of" means two or more.

[0239] The above are only exemplary embodiments of the present disclosure and are not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present disclosure shall be included within the protection scope of the present disclosure.

Claims

1. An automatic control method for silk ingots to pass through stations, applied to an automatic control system for silk ingots to pass through stations, characterized in that, The automatic silk ingot passing station control system includes a manufacturing execution system MES, a first programmable logic controller PLC, and multiple second PLCs. Each second PLC is used to control at least one station. The multiple second PLCs are respectively connected to the first PLC, and the first PLC can be connected to the MES. The first PLC continuously monitors the status of the control buttons of the first PLC. The first PLC has two working modes. When the first PLC is in the online mode, the first PLC maintains a connection with the MES and can synchronize data to the MES in real time. When the first PLC is in the offline mode, the first PLC disconnects from the MES and cannot synchronize data to the MES in real time. The second PLC has two working modes. When the second PLC is in the offline mode, the second PLC applies for forced passing of the station. When the second PLC is in the online mode, the second PLC performs passing station processing according to the passing station instruction information sent by the MES or the first PLC. The automatic silk ingot passing station control method includes: Monitoring whether the control button of the first PLC is in the offline mode and whether the control button of the second PLC corresponding to the target station is in the online mode. When the control button of the second PLC corresponding to the target station is in the offline mode, the second PLC sends a forced passing station application to the first PLC. The forced passing station application includes forced passing station variable = 1. When the control button of the first PLC is in the offline mode and the control button of the second PLC corresponding to the target station is in the online mode, if the first PLC generates passing station instruction information for the target station, offline data is stored in the offline cache area. The passing station instruction information is permission to pass the station. The offline data is the passing station record that needs to be synchronized to the MES when the first PLC is disconnected from the MES. When the first PLC switches from the offline mode to the online mode or reaches a preset time, the offline data is synchronized to the MES. Updating the silk ingot status information corresponding to the offline data in the MES according to the offline data.

2. The method according to claim 1, characterized in that, The step of if the first PLC generates passing station instruction information for the target station, then storing the offline data in the offline cache area includes: First, sending the passing station instruction information to the second PLC corresponding to the target station, so that the second PLC controls the target station to perform the silk ingot passing station task based on the passing station instruction information, and then storing the offline data in the offline cache area.

3. The method according to claim 1, wherein The step of if the first PLC generates passing station instruction information for the target station, then storing the offline data in the offline cache area includes: First, storing the offline data in the offline cache area, and then sending the passing station instruction information to the second PLC corresponding to the target station, so that the second PLC controls the target station to perform the silk ingot passing station task based on the passing station instruction information.

4. The method according to claim 1, wherein The automatic silk ingot passing station control method further includes: When the first PLC detects that the control button corresponding to the first PLC rotates to the offline mode, it determines that the first PLC is disconnected from the MES.

5. The method according to claim 1, wherein The automatic ingot passing control method further includes: When the first PLC detects a communication interruption between the first PLC and the MES, it determines that the first PLC is disconnected from the MES.

6. The method according to claim 4 or 5, characterized in that, The automatic ingot passing control method further includes: When the MES is disconnected from the first PLC, the MES does not perform the judgment process for the online passing condition.

7. The method according to claim 6, wherein The judgment process for the online passing condition includes: Based on the target string data corresponding to the target station, determining whether the ingots at the target station meet the passing condition; if the passing condition is met, determining that the passing instruction information is permission to pass; if the passing condition is not met, determining that the passing instruction information is prohibited from passing; the target string data is obtained by the MES parsing the first service data of the target station, where the first service data is obtained according to the second service data, and the second service data is the service data obtained by the first PLC from the second PLC corresponding to the target station.

8. The method according to claim 1, characterized in that, The automatic ingot passing control method further includes: The first PLC allocates multiple offline cache areas and one offline control area for all target stations. The multiple offline cache areas are shared by all target stations. The offline control area includes relevant data bits and relevant control bits for synchronizing offline data to the MES.

9. An automatic bobbin passing station control device is applied to an automatic bobbin passing station control system, and is characterized in that, The automatic ingot passing control system includes a Manufacturing Execution System (MES), a first Programmable Logic Controller (PLC), and multiple second PLCs. Each second PLC is used to control at least one station; the multiple second PLCs are respectively connected to the first PLC, and the first PLC can be connected to the MES; the first PLC continuously monitors the status of the control button of the first PLC. Among them, the first PLC has two working modes. When the first PLC is in the online mode, the first PLC maintains a connection with the MES and can synchronize data to the MES in real time; when the first PLC is in the offline mode, the first PLC is disconnected from the MES and cannot synchronize data to the MES in real time. Among them, the second PLC has two working modes. When the second PLC is in the offline mode, the second PLC applies for forced passing; when the second PLC is in the online mode, the second PLC performs passing processing according to the passing instruction information sent by the MES or the first PLC. The automatic ingot passing control device includes: A monitoring module, which is used to monitor whether the control button of the first PLC is in the offline mode and whether the control button of the second PLC corresponding to the target station is in the online mode. An application module, which is used to, when the control button of the second PLC corresponding to the target station is in the offline mode, the second PLC sends a forced passing application to the first PLC; the forced passing application includes forced passing variable = 1. The first control module is configured to store offline data in the offline cache area if the control button of the first PLC is in the offline mode and the control button of the second PLC corresponding to the target station is in the online mode, and the first PLC generates passing station indication information for the target station. The offline data is passing station records that need to be synchronized to the MES and are stored when the first PLC is disconnected from the MES. The passing station indication information is permission to pass the station. The synchronization module is configured to synchronize the offline data to the MES when the first PLC switches from the offline mode to the online mode or reaches a preset time. The update module is configured to update the spindle status information corresponding to the offline data in the MES according to the offline data.

10. An electronic device, characterized in that, Comprising: At least one processor; And A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method according to any one of claims 1 to 8.

11. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Monitoring system and monitoring method for vehicle manufacturing general assembly workshop equipment

    CN114237175A

  • Vehicle manufacturing control method, device and system, controller and storage medium

    CN118550279A