Method, apparatus, electronic device, and storage medium for controlling the transfer of yarn packages.
The transfer control system addresses inefficiencies in winding package production by using a first controller to manage data transmission and ensure accurate transfer operations, enhancing production line efficiency and stability.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-06-06
- Publication Date
- 2026-04-09
AI Technical Summary
Existing production lines for winding package products face inefficiencies due to challenges in accurately and efficiently transferring wound yarn packages between stations, which affects overall production efficiency and stability.
A transfer control system with a first controller intermediating between multiple second controllers and a manufacturing execution system, ensuring data transmission only when the communication link is normal, thereby reducing data processing burden and enhancing system scalability and stability, while enabling accurate transfer control operations based on business data.
Ensures efficient and accurate movement of wound yarn packages, maintaining production line efficiency by reducing data corruption and improving system stability through centralized data management and proactive communication link monitoring.
Smart Images

Figure 2026062457000001_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the fields of computers and automatic control, and particularly to a method and apparatus for controlling the transfer of winding packages, an electronic device, and a storage medium.
Background Art
[0002] In the production process of winding package products, constructing an efficiently operating production line is an essential core part for ensuring production capacity and production efficiency. This production line is distributed with a plurality of winding package operation stations that are closely connected and require a high degree of cooperation. Each winding package operation station is responsible for performing specific production operations on the winding package products. When the winding package products pass through the winding package operation stations, moving efficiently and accurately, and / or determining whether to transfer or not is the key point for maintaining the efficient operation of the production line.
Summary of the Invention
Problems to be Solved by the Invention
[0003] The present disclosure provides a method and apparatus for controlling the transfer of winding packages, an electronic device, and a storage medium to solve or mitigate one or more technical problems in the prior art.
Means for Solving the Problems
[0004] In a first aspect, the present disclosure provides a method for controlling the transfer of winding packages applied to a first controller included in a transfer control system of winding packages. The transfer control system of winding packages further includes a manufacturing execution system communicating with the first controller and a plurality of second controllers. Each of the plurality of second controllers has a corresponding winding package operation station, and is configured to obtain business data related to the winding package operation station and execute a transfer control operation on the winding package products passing through the winding package operation station. The aforementioned method, Each of the multiple second controllers is designated as a target controller, and the target business data transmitted by the target controller is received. If it is determined that the communication link between the first controller and the manufacturing execution system is in a normal state, the target business data is sent to the manufacturing execution system (where the manufacturing execution system obtains a target transfer instruction based on the target business data and sends the target transfer instruction to the first controller), Receiving target transfer instructions transmitted by the manufacturing execution system, Sending a target transfer instruction to the target controller (where the target controller is used to perform transfer control operations on the wound yarn package product passing through the target work station corresponding to the target controller, based on the target transfer instruction), Includes.
[0005] In a second aspect, the Disclosure provides a transfer control device for a yarn package that is applied to a first controller included in a yarn package transfer control system, the yarn package transfer control system further includes a manufacturing execution system that communicates with the first controller and a plurality of second controllers, each of the plurality of second controllers having a corresponding yarn package work station to acquire operational data relating to the yarn package work station and to perform transfer control operations on yarn package products passing through the yarn package work station. The aforementioned device is A business data receiving unit for receiving target business data transmitted by multiple second controllers, with each second controller in the group acting as a target controller, If it is determined that the communication link between the first controller and the manufacturing execution system is in a normal state, a business data transmission unit for transmitting target business data to the manufacturing execution system (where the manufacturing execution system is used to acquire target transfer instructions based on the target business data and transmit target transfer instructions to the first controller) is provided. A transfer instruction receiving unit for receiving target transfer instructions transmitted by the manufacturing execution system, A transfer instruction transmission unit for transmitting a target transfer instruction to a target controller (where the target controller is used to perform transfer control operations on a wound yarn package product passing through a target work station corresponding to the target controller, based on the target transfer instruction), Includes.
[0006] In a third aspect, this disclosure is: At least one processor, Includes memory that is communicably connected to at least one processor, The present invention provides an electronic device in which a memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform any of the embodiments of the present disclosure.
[0007] In a fourth aspect, the Disclosure provides a non-temporary, computer-readable storage medium that stores computer instructions used to cause a computer to perform any of the embodiments of the Disclosure. [Effects of the Invention]
[0008] According to the technical solution relating to this disclosure, when a wound yarn package product passes through a wound yarn package work station, it can move efficiently and accurately, and a decision can be made as to whether or not to move the work station, thereby ensuring the efficient operation of the production line.
[0009] It should be understood that the information described in this section does not limit the key points or important features relating to the embodiments of this disclosure, nor does it limit the scope of this disclosure. Other features of this disclosure will be readily apparent from the following specification.
[0010] In the drawings, unless otherwise specified, the same reference numeral in multiple drawings indicates the same or similar member or element. These drawings are not necessarily drawn to scale. These drawings only illustrate some embodiments relating to the present disclosure and should not be considered to limit the scope of the present disclosure. [Brief explanation of the drawing]
[0011] [Figure 1] This is a schematic block diagram of the transfer control system for a wound yarn package according to an embodiment of the present disclosure. [Figure 2] This is a flowchart of the transfer control method for a wound yarn package according to an embodiment of the present disclosure. [Figure 3] This is a partial flowchart of the method for controlling the transfer of a wound yarn package according to an embodiment of the present disclosure. [Figure 4] This is a schematic block diagram of the transfer control device for a wound yarn package according to an embodiment of the present disclosure. [Figure 5] This is a schematic block diagram of the electronic device according to an embodiment of the present disclosure. [Modes for carrying out the invention]
[0012] The present invention will be described in further detail below with reference to the drawings. Identical reference numerals in the drawings indicate components having the same or similar functions. Various embodiments of the model are shown in the drawings, but unless otherwise specified, the drawings are not necessarily drawn to scale.
[0013] Furthermore, to better illustrate this disclosure, numerous details are provided in the following specific embodiments. It should be understood by those skilled in the art that this disclosure can be implemented without certain specific details. In some embodiments, methods, means, elements, and circuits, etc., that are well known to those skilled in the art are not described in detail in order to emphasize the intent of this disclosure.
[0014] As described in the background art, in the production process of wound-package products, constructing an efficiently operating production line is a core component essential for ensuring production capacity and efficiency. This production line is distributed with multiple wound-package work stations that are closely connected and require high levels of cooperation, each of which is responsible for performing specific production tasks on wound-package products. Here, the multiple wound-package work stations may include a weighing station for weighing the wound-package products, an external inspection station for intelligently performing external inspections on the wound-package products, a bagging station for bagging the wound-package products, and so on. When wound-package products pass through a wound-package work station, efficient and accurate movement and / or determination of whether or not to move through a work station are key points in maintaining the efficient operation of the production line. Therefore, embodiments of this disclosure provide a method for controlling the transfer of wound-packages to maintain the efficient operation of the production line by ensuring that wound-package products move efficiently and accurately when passing through a wound-package work station and / or determination of whether or not to move through a work station.
[0015] Before describing the transfer control method for the wound yarn package according to the embodiments of this disclosure, it should be noted that in the embodiments of this disclosure, the main type of wound yarn package product may include at least one of the following: Partially Oriented Yarns (POY), Fully Drawn Yarns (FDY), Draw Textured Yarns (DTY), (or referred to as low-elasticity yarn). Specifically, the type of wound yarn package product may include Polyester Partially Oriented Yarns, Polyester Fully Drawn Yarns, Polyester Drawn Yarns, Polyester Draw Textured Yarns, etc.
[0016] Hereinafter, while referring to FIGS. 1 and 2, a method for controlling the transfer of a winding package according to an embodiment of the present disclosure will be described.
[0017] First, FIG. 1 is a schematic structural block diagram of a transfer control system for a winding package according to an embodiment of the present disclosure, including a first controller, and a manufacturing execution system (MES) that communicates with the first controller and a plurality of second controllers. Here, the first controller may be a programmable logic controller (PLC), the second controller may be a PLC, and MES may be applied to a terminal device or a server. Here, the terminal device may be a workstation, a mainframe computer, a general computer (e.g., a desktop computer, a laptop computer), or other similar computing devices.
[0018] In an embodiment of the present disclosure, each of the plurality of second controllers has a corresponding winding package working station (at least one) in order to obtain business data related to the winding package working station. Here, the business data may include device status, quality management reference data, etc. obtained by the production management control device in the production process of the winding package product, and may further include a production schedule, etc. Here, the device status may include the operating status, failure history, maintenance status, etc. of the production management control device. The quality management reference data may include the winding package weight of the winding package product, the external inspection results of the winding package, etc. The production schedule may include the completion time of each production stage, the current production volume statistical results, etc. For example, when the winding package working station is a weighing station, the business data related to the weighing station may include the winding package weight (belonging to the quality management reference data) obtained by a weight sensor (belonging to the production management control device) in the production process of the winding package product. Also, for example, when the winding package working station is an external inspection station, the business data related to the external inspection station may include the external inspection results of the winding package (belonging to the quality management reference data) obtained by an external inspection device (belonging to the production management control device) in the production process of the winding package product.
[0019] For each of the multiple second controllers, the second controller acquires business data relating to the winding package work station corresponding to itself and transmits the business data to the first controller. The first controller then transmits the business data to the MES. The MES then acquires a transfer instruction relating to the winding package work station based on the business data and transmits the transfer instruction to the first controller. The first controller then transmits the transfer instruction to the second controller, which then executes a transfer control operation for the winding package products passing through the winding package work station based on the transfer instruction. Here, the transfer control operation can be realized by a transfer management control device (e.g., a winding package diversion device, a transport robot, etc.) installed at the winding package work station. The transfer control operation is used to control the movement of winding package products passing through the winding package work station, and / or to control whether or not to transfer the work station (transfer permission or transfer prohibition).
[0020] Figure 2 is a flowchart of a transfer control method for a wound yarn package according to an embodiment of the present disclosure, which is applied to a first controller included in the transfer control system for a wound yarn package. Although the logical sequence is illustrated in the flowchart, the illustrated or described steps may be performed in other orders depending on the circumstances.
[0021] In step S201, each of the multiple second controllers is designated as a target controller, and target business data transmitted by the target controllers is received.
[0022] Here, at least one winding package work station corresponding to the target controller includes a target work station, and the target controller can acquire operational data relating to the target work station. In embodiments of this disclosure, for ease of explanation, the operational data relating to the target work station may be referred to as target operational data.
[0023] In step S202, if it is determined that the communication link between the first controller and the MES is in a normal state, the target business data is sent to the MES.
[0024] Here, the first controller can establish a communication link with the MES via a network or Management Interface (MI) communication method. After receiving the target business data transmitted by the target controller, the first controller converts the target business data according to a pre-configured data format to obtain the formatted target business data that can be processed by the MES. If the first controller determines that the communication link between the first controller and the MES is in a normal state, it can transmit the formatted target business data to the MES.
[0025] In the embodiments of this disclosure, the MES acquires a target transfer instruction based on target work data (for example, format-converted target work data) and transmits the target transfer instruction to the first controller. Here, the target transfer instruction is intended to instruct the target controller to perform a transfer control operation on the wound yarn package product passing through the target work station.
[0026] In step S203, the target transfer instruction transmitted by the MES is received. In step S204, a target transfer instruction is sent to the target controller.
[0027] Here, the target controller is used to perform transfer control operations on the wound yarn package product passing through the target work station based on the target transfer instruction. Here, the transfer control operation can be realized by a transfer management device installed at the target work station corresponding to the target controller. The transfer control operation is used to control the movement of the wound yarn package product passing through the target work station, and / or to control whether or not to transfer the work station.
[0028] According to the transfer control method for a wound yarn package in the embodiment of this disclosure, on the one hand, by making the first controller an intermediate layer between a plurality of second controllers and the MES, centralized management and integration of business data can be achieved using the first controller, thereby reducing the data processing burden on the MES and improving the scalability and safety of the transfer control system for wound yarn packages. At the same time, the network structure of the transfer control system for wound yarn packages can be simplified, thereby improving the stability of the transfer control system for wound yarn packages. On the other hand, after the first controller receives the target business data transmitted by the target controller, it transmits the target business data to the MES only if it determines that the communication link with the MES is in a normal state. In this way, by transmitting the target business data to the MES when the communication link between the first controller and the MES is in an abnormal state, corruption or loss of the target business data can be avoided, thereby ensuring that the target business data can be accurately received by the MES. As a result, the MES can ensure that it obtains accurate target transfer instructions based on this target business data. As a result, the target controller can accurately execute transfer control operations for wound yarn package products passing through the target work station based on the target transfer instructions. In other words, when a wound yarn package product passes through a wound yarn package work station, it is possible to ensure that it moves efficiently and accurately, and / or that a decision is made as to whether or not to move to another work station, thereby maintaining the efficient operation of the production line.
[0029] In the embodiments of this disclosure, after receiving target business data, the MES may determine a transport evaluation mechanism corresponding to the target business data based on the data attributes of the target business data, and obtain a target transport instruction based on the target business data in accordance with the transport evaluation mechanism.
[0030] For example, if the target business data is the external detection result of a wound yarn package, the transfer evaluation mechanism corresponding to the target business data may be as follows: If the external detection result of the wound yarn package indicates that the wound yarn package product belongs to the S-grade product, a first transfer instruction is obtained (the transfer control operation corresponding to the first transfer instruction is to divert the wound yarn package product from the main production line to the first production line). If the external detection result of the wound yarn package indicates that the wound yarn package product belongs to the A-grade product, a second transfer instruction is obtained (the transfer control operation corresponding to the second transfer instruction is to divert the wound yarn package product from the main production line to the second production line). If the external detection result of the wound yarn package indicates that the wound yarn package product belongs to the B-grade product, a third transfer instruction is obtained (the transfer control operation corresponding to the third transfer instruction is to divert the wound yarn package product from the main production line to the third line).
[0031] Furthermore, for example, if the target operational data is the weight of the yarn package, the transfer evaluation mechanism corresponding to the target operational data may be as follows: If the weight of the yarn package is within a preset weight range, a first transfer instruction is obtained (the transfer control operation corresponding to the first transfer instruction is to permit the transfer). If the weight of the yarn package exceeds the preset weight range, a second transfer instruction is obtained (the transfer control operation corresponding to the second transfer instruction is to prohibit the transfer). Here, the preset weight range may be set according to actual demand and is not limited to the embodiments of this disclosure.
[0032] In some selectable embodiments, the "determination that the communication link between the first controller and the MES is in a normal state" in step S202 means that To generate a communication detection request, Sending a communication detection request to the MES (where the MES generates detection response information corresponding to the communication detection request and sends the detection response information to the first controller), If detection response information transmitted by the MES is received within a predetermined waiting time, it is determined that the communication link between the first controller and the MES is in a normal state. It may include.
[0033] For example, a communication detection request may represent HB_REQUEST_MSG, specifically, 026MT=HB**,ST=10086***,END It may include.
[0034] Here, "026" represents the message length of the communication detection request, "MT=HB**" represents the message type of the communication detection request, "ST=10086***" is used to identify the first controller, and "END" is the termination flag for the communication detection request.
[0035] In one example, the detection response information may represent HB_RESPONSE_MSG, specifically, 026MT=HBS*,ST=10086***,END It may include.
[0036] Here, "026" represents the message length of the detection response information, "MT=HBS*" represents that the message type of the detection response information is heartbeat response information, "ST=10086***" is used to identify the first controller, and "END" is the termination flag for the detection response information.
[0037] In the embodiments of this disclosure, a communication detection request may be generated when pre-configured detection requirements are met. Here, the pre-configured detection requirements may include that the heartbeat detection mechanism is activated (i.e., HB_ENABLED=1) and the timing time of the heartbeat timer is equal to or greater than a pre-configured heartbeat interval (i.e., HB_TIMER≧HB_INTERVAL), and that a pre-configured request transmission request is also met. Here, the pre-configured request transmission request is: The communication discovery request is empty (i.e., HB_REQUEST_MSG="), The detection response information is empty (i.e., HB_RESPONSE_MSG="), The heartbeat transmission flag is reset (i.e., HB_SENT=0), The heartbeat reception flag bit is reset (i.e., HB_RECEIVED=0), It may include.
[0038] Here, the pre-set waiting time may be set according to the actual demand, for example, to 2S, and is not limited to the embodiments of this disclosure.
[0039] In the embodiments described above, the method of generating and transmitting a communication detection request allows for the proactive initiation of detection regarding whether the communication link between the first controller and the MES is in a normal state. Such an active detection mechanism can promptly confirm whether the communication link between the first controller and the MES is in a normal state, thereby ensuring that target work data can be transmitted to the MES in a timely manner, reducing delayed transmission of target work data, and more effectively maintaining the efficient operation of the production line.
[0040] Furthermore, in the embodiments of this disclosure, the heartbeat result flag bit may be set (i.e., HB_OK=1) after determining that the communication link between the first controller and the MES is in a normal state and sending the target business data to the MES, or the heartbeat result flag bit may be set (i.e., HB_OK=1) after determining that the communication link between the first controller and the MES is in a normal state, and then the target business data may be sent to the MES. After that, the heartbeat transmission flag bit is set (i.e., HB_SENT=1) and the timing of the heartbeat timer is reset (i.e., HB_TIMER=0).
[0041] In some select embodiments, the method for controlling the transfer of the wound yarn package is as follows: When detection response information sent by MES is received within a predetermined waiting time, the detection response information is identified, and the identification result of the detection response information is obtained. If the identification result satisfies a pre-configured identification requirement, a first response record is generated to indicate that the detection response information belongs to the correct response, Alternatively, if the identification result does not satisfy the pre-configured identification requirement, a second response record is generated to indicate that the detection response information belongs to an error response. It may also include the following.
[0042] Here, in identifying detection response information, the message length of the detection response information is identified, the identification result of the detection response information (i.e., message length) is obtained, and if the identification result of the detection response information is equal to a preset length threshold (e.g., 26), it is determined that the identification result satisfies a preset identification requirement, and a first response record is generated to indicate that the detection response information belongs to an accurate response. If the identification result of the detection response information is not equal to a preset length threshold, it is determined that the identification result does not satisfy a preset identification requirement, and a second response record is generated to indicate that the detection response information belongs to an error response. Here, the second response record may be identified by error code 3586.
[0043] In the embodiment described above, when detection response information transmitted by the MES is received within a preset waiting time, the detection response information can be identified and the identification result of the detection response information can be obtained. Subsequently, if the identification result satisfies a preset identification requirement, a first response record can be generated to indicate that the detection response information belongs to an accurate response. Furthermore, if the identification result does not satisfy the preset identification requirement, a second response record can also be generated to indicate that the detection response information belongs to an error response. Thus, when the generation of a second response record is detected, it is determined that several potential security risks that could affect the stability of the MES already exist, and corresponding countermeasures can be taken to optimize the MES.
[0044] Furthermore, in the embodiments of this disclosure, if detection response information transmitted by the MES is received within a preset waiting time, the detection response information is identified, the identification result of the detection response information is obtained, and if the identification result satisfies a preset identification requirement, a first response record can be generated, the detection response information can be reset (i.e., HB_RESPONSE_MSG=0), and the heartbeat received flag bit can be set (i.e., HB_RECEIVED=1). Subsequently, the heartbeat transmission flag can be reset (i.e., HB_SENT=0), and the heartbeat received flag bit can be reset (i.e., HB_RECEIVED=0).
[0045] Similarly, in the embodiments of this disclosure, detection response information transmitted by the MES within a predetermined waiting time can be received, the detection response information can be identified, the identification result of the detection response information can be obtained, and if the identification result does not satisfy a predetermined identification requirement, a second response record can be generated, after which the heartbeat transmission flag can be reset (i.e., HB_SENT=0) and the heartbeat reception flag bit can be reset (i.e., HB_RECEIVED=0).
[0046] In some of the selectable embodiments, "generating a first response record" means, The first controller obtains a first timestamp recorded when it receives detection response information transmitted by the MES, Update the historical heartbeat count value and obtain the current heartbeat count value, Based on the first timestamp and the current heartbeat count value, a first response record is generated, It may include.
[0047] Here, the historical heartbeat count value can be obtained using the following method.
[0048] If the pre-configured heartbeat memory space of the first controller is empty, a first heartbeat count value is randomly generated as the history heartbeat count value. If the pre-configured heartbeat memory space of the first controller is not empty, the second heartbeat count value stored in the pre-configured heartbeat memory space is used as the history heartbeat count value.
[0049] For example, after obtaining the historical heartbeat count value, a "+1" operation can be performed on the historical heartbeat count value to obtain the current heartbeat count value, and then a first response record can be generated based on the first timestamp and the current heartbeat count value. For example, the first response record can be constructed using the first timestamp and the current heartbeat value.
[0050] In the embodiments of this disclosure, when the first controller receives detection response information transmitted by the MES, it obtains a first timestamp recorded, updates the historical heartbeat count value, obtains the current heartbeat count value, and generates a first response record based on the first timestamp and the current heartbeat count value, it is also possible to store the current heartbeat count value as a new second heartbeat count value in a pre-configured heartbeat memory space, thereby overwriting the old second heartbeat count value stored in the pre-configured heartbeat memory space with the new second heartbeat count value.
[0051] In the embodiment described above, the first controller can obtain a first timestamp recorded when it receives detection response information transmitted by the MES, update the historical heartbeat count value, obtain the current heartbeat count value, and generate a first response record based on the first timestamp and the current heartbeat count value. In this way, if a subsequent second response record or other communication anomaly record appears, a wide range of specified time periods can be obtained based on the first response record and the subsequent second response record or other communication anomaly record. Based on this wide range of specified time periods, the MES work log can be queried, thereby allowing for the timely and accurate identification of potential security risks or existing stability problems that may affect the stability of the MES, enabling the implementation of corresponding countermeasures and optimizing the MES.
[0052] In some of the selectable embodiments, "generating a second response record" means, Obtain the second timestamp recorded when the first controller sends a communication detection request to the MES, The first controller obtains a third timestamp recorded when it receives detection response information transmitted by the MES, Based on the second and third timestamps, a second response record is generated, It may include.
[0053] For example, a second response record can be constructed using a second and a third timestamp. For instance, the second timestamp can be set as the start time, and the third timestamp as the end time, forming a single specified time period and creating the second response record.
[0054] In the above example, in the embodiment disclosed herein, if the generation of a second response record is detected, it is determined that several potential security risks that could affect the stability of the MES have occurred, and the MES work log can be queried based on the specified time period represented by the second response record. This allows for the timely and accurate identification of potential security risks present in the MES, thereby enabling the implementation of corresponding corrective actions and optimizing the MES.
[0055] In another example, the second response record may be generated in the following way:
[0056] Based on the second and third timestamps, obtain the first query time, To retrieve the content of the first query, The objective is to generate a second response record based on the first query time and the first query content.
[0057] Here, the first query time may be a specified time period with the second timestamp as the start time and the third timestamp as the end time. The first query content may include at least one of the MES thread calling mechanism and hardware device performance. Here, hardware device performance may include Central Processing Unit (CPU) utilization, memory utilization, disk I / O performance, etc.
[0058] Based on the above examples, in the embodiments of this disclosure, when the generation of a second response record is detected, it is determined that several potential security risks that could affect the stability of the MES already exist. Based on the first query time included in the second response record, the portions of the MES's work log relating to the thread calling mechanism and hardware device performance are queried, thereby enabling a more timely and accurate identification of potential security risks present in the MES, and thereby allowing corresponding processing measures to be taken to optimize the MES.
[0059] In short, the above configuration allows the embodiment of this disclosure to obtain a second timestamp recorded when the first controller sends a communication detection request to the MES, obtain a third timestamp recorded when the first controller receives detection response information sent by the MES, and generate a second response record based on the second and third timestamps. When the generation of the second response record is detected, it is determined that several potential security risks that could affect the stability of the MES already exist, and the MES's work log is queried based on the second response record, thereby allowing for a timely confirmation of potential security risks present in the MES, and thereby enabling timely processing and optimization of the MES.
[0060] In some selectable embodiments, the method for controlling the transfer of a wound yarn package is as follows: If detection response information sent by the MES is not received within a predetermined waiting time, an abnormality detection result is generated to indicate that the communication link between the first controller and the MES is in an abnormal state. Based on the anomaly detection results, update the historical anomaly count N and obtain the current anomaly count N+1 (where N≧0 and is an integer, and the current anomaly count N+1 represents that N+1 anomaly detection results have already been generated), If the current number of anomalies N+1 exceeds a pre-set threshold, a communication anomaly record will be generated. It may also include the following.
[0061] Here, the number of historical anomalies N can be obtained using the following method.
[0062] If the pre-configured abnormality count memory space of the first controller is empty, the history abnormality count N is determined to be 0. If the pre-configured abnormality count memory space of the first controller is not empty, the abnormality count value stored in the pre-configured abnormality count memory space is taken as the history abnormality count N.
[0063] In one example, after obtaining the history error count N, a "+1" operation is performed on the history error count N to obtain the current error count N+1, and if the current error count N+1 is greater than or equal to a preset threshold, a communication error record can be generated. Here, the communication error record can be identified by error code 3306.
[0064] In the embodiments of this disclosure, if detection response information transmitted by the MES is not received within a predetermined waiting time, an anomaly detection result is generated, and based on the anomaly detection result, the history anomaly count N is updated and the current anomaly count N+1 is obtained, the current anomaly count N+1 can be stored as a new anomaly count value in a predetermined anomaly count storage space, thereby overwriting the old anomaly count value stored in the predetermined anomaly count storage space with the new anomaly count value.
[0065] In the embodiments of this disclosure, the pre-set threshold number may be set according to the actual demand, for example, it may be set to 3, and is not limited to the embodiments of this disclosure.
[0066] In the embodiment described above, if detection response information transmitted by the MES is not received within a preset waiting time, an anomaly detection result is generated, and based on the anomaly detection result, the history anomaly count N is updated, the current anomaly count N+1 is obtained, and if the current anomaly count N+1 is greater than or equal to a preset threshold, a communication anomaly record can be generated. In this way, when the generation of a communication anomaly record is detected, existing stability problems of the MES can be identified, and corresponding processing measures can be taken to optimize the MES in a timely manner.
[0067] Furthermore, in the embodiments of this disclosure, if detection response information transmitted by the MES is not received within a preset waiting time, an anomaly detection result is generated, and based on the anomaly detection result, the history anomaly count N is updated, and the current anomaly count N+1 is obtained, then a communication anomaly record may be generated and the heartbeat result flag bit may be reset (i.e., HB_OK=0), or the heartbeat result flag bit may be reset (i.e., HB_OK=0), and then a communication anomaly record may be generated. After that, the heartbeat transmission flag may be reset (i.e., HB_SENT=0), and the heartbeat reception flag bit may be reset (i.e., HB_RECEIVED=0).
[0068] Furthermore, it should be explained that in the embodiment of this disclosure, if detection response information sent by the MES is not received within a predetermined waiting time, an anomaly detection result is generated, and based on the anomaly detection result, the history anomaly count N is updated, and the current anomaly count N+1 is obtained, then if the current anomaly count N+1 is less than a predetermined threshold, a clear process can be performed on the communication detection request (i.e., set to HB_REQUEST_MSG=").
[0069] In some of the selectable embodiments, "generating a communication error record" means Obtain N+1 fourth timestamps, one for each of the N+1 anomaly detection results, Based on N+1 fourth timestamps, generate a communication anomaly record. It may include.
[0070] In the embodiments of this disclosure, each of the N+1 anomaly detection results is designated as a target detection result, and the timestamp recorded when the first controller sends a communication detection request corresponding to the target detection result to the MES is obtained and designated as a fourth timestamp corresponding to the target detection result. Furthermore, N+1 fourth timestamps corresponding to each of the N+1 anomaly detection results can be obtained.
[0071] In one example, a communication anomaly record can be generated based on only N+1 fourth timestamps. For instance, the earliest first waiting timestamp and the latest second waiting timestamp can be selected from the N+1 fourth timestamps, and the first waiting timestamp can be used as the start time and the second waiting timestamp as the end time to constitute a single specified time period, which can then be used as the communication anomaly record.
[0072] Based on the above example, in an implementation of this disclosure, if the generation of a communication anomaly record is detected, an existing stability problem of the MES can be identified, and the MES's work log can be accessed based on the specified period represented by the second response record. This allows for the timely and accurate identification of the existing stability problem of the MES, thereby enabling the implementation of corresponding processing measures and optimizing the MES.
[0073] In another example, communication error logs can also be generated in the following way:
[0074] Based on N+1 fourth timestamps, obtain the second query time, To retrieve the second query content, The objective is to generate a communication anomaly record based on the second query time and the second query content.
[0075] Here, the second query time can be generated based on only N+1 fourth timestamps. For example, the earliest third waiting timestamp and the latest fourth waiting timestamp can be selected from the N+1 fourth timestamps, and the third waiting timestamp can be used as the start time and the fourth waiting timestamp as the end time to constitute a single specified time period, which can then be used as a communication anomaly record.
[0076] In the embodiments of this disclosure, the second query content may include at least one of the MES's message receiving mechanism, thread calling mechanism, and hardware device performance. Here, hardware device performance may include CPU utilization, memory utilization, disk I / O performance, etc.
[0077] Based on the above example, in the embodiments of this disclosure, when the generation of a communication anomaly record is detected, existing stability problems of the MES can be determined, and based on the first query time included in the second response record, the parts of the MES's work log relating to the message receiving mechanism, thread calling mechanism, and hardware device performance can be queried, thereby enabling the more timely and accurate identification of existing stability problems of the MES, and thereby enabling the implementation of corresponding processing measures to optimize the MES.
[0078] The following describes some of the flow diagrams related to the winding package transfer control method according to an embodiment of this disclosure, with reference to Figure 3.
[0079] In step S301, the transfer control system for the yarn package is activated. In step S302, preconditions are set.
[0080] In embodiments of this disclosure, the preconditions may include that the heartbeat detection mechanism is activated (i.e., HB_ENABLED=1) and the timing period of the heartbeat timer is equal to or greater than a preset heartbeat interval (i.e., HB_TIMER≧HB_INTERVAL).
[0081] In step S303, it is determined whether or not a pre-configured request for sending a bill has been fulfilled.
[0082] Here, the pre-configured request to send a bill is: The communication discovery request is empty (i.e., HB_REQUEST_MSG="), The detection response information is empty (i.e., HB_RESPONSE_MSG="), The heartbeat transmission flag is reset (i.e., HB_SENT=0), The heartbeat reception flag bit is reset (i.e., HB_RECEIVED=0), Includes.
[0083] In the embodiments of this disclosure, if the pre-configured request for sending a request is not met, step S303 can be continued. If the pre-configured request for sending a request is met, the process can proceed to step S304.
[0084] In step S304, a communication detection request is generated and sent to the MES.
[0085] Here, the MES is used to generate detection response information in response to a communication detection request and to transmit the detection response information to the first controller.
[0086] For example, a communication detection request may represent HB_REQUEST_MSG, specifically, 026MT=HB**,ST=10086***,END It may include.
[0087] Here, "026" represents the message length of the communication detection request, "MT=HB**" represents the message type of the communication detection request, "ST=10086***" is used to identify the first controller, and "END" is the termination flag for the communication detection request.
[0088] In one example, the detection response information may represent HB_RESPONSE_MSG, specifically, 026MT=HBS*,ST=10086***,END It may include.
[0089] Here, "026" represents the message length of the detection response information, "MT=HBS*" represents that the message type of the detection response information is heartbeat response information, "ST=10086***" is used to identify the first controller, and "END" is the termination flag for the detection response information.
[0090] In step S305, it is determined whether or not detection response information sent by the MES has been received within a predetermined waiting time.
[0091] Here, the pre-set waiting time may be set according to the actual demand, for example, to 2S, and is not limited to the embodiments of this disclosure.
[0092] In the embodiments of this disclosure, if detection response information transmitted by the MES is received within a preset waiting time, it is determined that the communication link between the first controller and the MES is in a normal state, and the process can proceed to step S306. If detection response information transmitted by the MES is not received within a preset waiting time, it is determined that the communication link between the first controller and the MES is in an abnormal state, and the process can proceed to step S314.
[0093] Furthermore, in the embodiments of this disclosure, the first controller can set each of the multiple second controllers as a target controller, receive target business data transmitted by the target controllers, and, if it is determined that the communication link between the first controller and the MES is in a normal state, transmit the target business data to the MES. Here, the MES is for acquiring a target transfer instruction based on the target business data and transmitting the target transfer instruction to the first controller. Subsequently, the first controller can receive the target transfer instruction transmitted by the MES and transmit the target transfer instruction to the target controller. Here, the target controller is for executing a transfer control operation for the wound yarn package product passing through the target work station based on the target transfer instruction. Here, the transfer control operation can be realized by a transfer management control device installed at the target work station corresponding to the target controller. The transfer control operation is used to control the movement of the wound yarn package product passing through the target work station, and / or to control whether or not to transfer the station.
[0094] In step S306, the heartbeat result flag bit is set (i.e., HB_OK=1).
[0095] In step S307, the heartbeat transmission flag is set (i.e., HB_SENT=1) and the timing of the heartbeat timer is reset (i.e., HB_TIMER=0).
[0096] In step S308, detection response information is identified, and the identification result of the detection response information is obtained.
[0097] Here, identifying detection response information may also mean identifying the message length of the detection response information and obtaining the identification result of the detection response information (i.e., the message length).
[0098] In step S309, it is determined whether the identification result of the detection response information satisfies the pre-configured identification requirement.
[0099] In several selectable implementations, if the identification result of the detection response information is equal to a preset length threshold, it can be determined that the identification result satisfies a preset identification requirement; if the identification result of the detection response information is not equal to a preset length threshold, it can be determined that the identification result does not satisfy a preset identification requirement. The preset length threshold may be set according to actual needs, for example, to 26, and is not limited to the embodiments of this disclosure.
[0100] In the embodiments of this disclosure, if the identification result satisfies the pre-set identification requirements, the process can proceed to step S310; if the identification result does not satisfy the pre-set identification requirements, the process can proceed to step S313.
[0101] In step S310, a first response record is generated.
[0102] Here, the first response record is used to indicate that the detected response information belongs to the accurate response.
[0103] In some of the available implementation methods, "generating a first response record" is, The first controller obtains a first timestamp recorded when it receives detection response information transmitted by the MES, Update the historical heartbeat count value and obtain the current heartbeat count value, Based on the first timestamp and the current heartbeat count value, a first response record is generated, It may include.
[0104] Here, the historical heartbeat count value can be obtained using the following method.
[0105] If the pre-configured heartbeat memory space of the first controller is empty, a first heartbeat count value is randomly generated as the history heartbeat count value. If the pre-configured heartbeat memory space of the first controller is not empty, the second heartbeat count value stored in the pre-configured heartbeat memory space is used as the history heartbeat count value.
[0106] For example, after obtaining the historical heartbeat count value, a "+1" operation can be performed on the historical heartbeat count value to obtain the current heartbeat count value, and a first response record can be generated based on the first timestamp and the current heartbeat count value. For example, the first response record can be constructed using the first timestamp and the current heartbeat value.
[0107] In the embodiments of this disclosure, when the first controller receives detection response information transmitted by the MES, it obtains a first timestamp recorded, updates the historical heartbeat count value, obtains the current heartbeat count value, and generates a first response record based on the first timestamp and the current heartbeat count value, it is also possible to store the current heartbeat count value as a new second heartbeat count value in a pre-configured heartbeat memory space, thereby overwriting the old second heartbeat count value stored in the pre-configured heartbeat memory space with the new second heartbeat count value.
[0108] In step S311, the detection response information is reset (i.e., HB_RESPONSE_MSG = 0). In step S312, the heartbeat reception flag bit is set (i.e., HB_RECEIVED=1).
[0109] In the embodiments of this disclosure, after performing step S312, the process can proceed to step S319.
[0110] In step S313, a second response record is generated.
[0111] Here, the second response record is used to indicate that the detection response information belongs to an error response. Here, the second response record may be identified by error code 3586.
[0112] In some of the available implementation methods, "generating a second response record" is, Obtain the second timestamp recorded when the first controller sends a communication detection request to the MES, The first controller obtains a third timestamp recorded when it receives detection response information transmitted by the MES, Based on the second and third timestamps, a second response record is generated, It may include.
[0113] In one example, a second response record may be constructed using a second timestamp and a third timestamp. For example, the second timestamp could be set as the start time and the third timestamp as the end time, forming a specified time period and creating a second response record.
[0114] In another example, the second response record can also be generated in the following way:
[0115] Based on the second and third timestamps, the first query time is obtained. To retrieve the content of the first query, Based on the first query time and the content of the first query, a second response record is generated. It may include.
[0116] Here, the first query time may be a specified time period with the second timestamp as the start time and the third timestamp as the end time. The first query content may include at least one of the MES thread calling mechanism and hardware device performance. Here, hardware device performance may include CPU utilization, memory utilization, disk I / O performance, etc.
[0117] In the embodiments of this disclosure, after performing step S313, the process can proceed to step S319.
[0118] In step S314, an anomaly detection result is generated, and based on the anomaly detection result, the history anomaly count N is updated, and the current anomaly count N+1 is obtained.
[0119] Here, the anomaly detection result indicates that the communication link between the first controller and the MES is in an abnormal state, N ≥ 0 and is an integer, and the current anomaly count N+1 indicates that N+1 anomaly detection results have already been generated.
[0120] Here, the number of historical anomalies N can be obtained using the following method.
[0121] If the pre-configured abnormality count memory space of the first controller is empty, the history abnormality count N is determined to be 0. If the pre-configured abnormality count memory space of the first controller is not empty, the abnormality count value stored in the pre-configured abnormality count memory space is taken as the history abnormality count N.
[0122] For example, after obtaining the history anomaly count N, you can perform a "+1" operation on the history anomaly count N to obtain the current anomaly count N+1.
[0123] In the embodiments of this disclosure, if detection response information transmitted by the MES is not received within a predetermined waiting time, an anomaly detection result is generated, and the history anomaly count N is updated based on the anomaly detection result, and the current anomaly count N+1 is obtained, the current anomaly count N+1 can be stored as a new anomaly count value in a predetermined anomaly count storage space, thereby overwriting the old anomaly count value stored in the predetermined anomaly count storage space with the new anomaly count value.
[0124] In step S315, it is determined whether the current number of abnormalities N+1 is equal to or greater than a preset threshold.
[0125] Here, the pre-set threshold number may be set according to actual demand, for example, to 3, and is not limited to the embodiments of this disclosure.
[0126] In the embodiments of this disclosure, if the current number of abnormalities N+1 is less than a preset threshold, the process can proceed to step S316. If the current number of abnormalities N+1 is equal to or greater than the preset threshold, the process can proceed to step S317.
[0127] In step S316, a clear operation is performed on the communication detection request (i.e., set it to HB_REQUEST_MSG=").
[0128] In the embodiments of this disclosure, after performing step S316, that is, after performing a clear process on the communication detection request (i.e., setting it to HB_REQUEST_MSG="), the user can return to step S302.
[0129] In step S317, the heartbeat result flag bit is reset (i.e., HB_OK = 0). In step S318, a communication error record is generated.
[0130] Here, the communication error record can be identified by error code 3306.
[0131] In some selectable embodiments, "generating a communication error record" means, Obtain N+1 fourth timestamps, one for each of the N+1 anomaly detection results, Based on N+1 fourth timestamps, generate a communication anomaly record. It may include.
[0132] In the embodiments of this disclosure, each of the N+1 anomaly detection results is designated as a target detection result, and the timestamp recorded when the first controller sends a communication detection request corresponding to the target detection result to the MES is obtained and designated as a fourth timestamp corresponding to the target detection result. Furthermore, N+1 fourth timestamps corresponding to each of the N+1 anomaly detection results can be obtained.
[0133] In one example, a communication anomaly record can be generated based on only N+1 fourth timestamps. For instance, the earliest first waiting timestamp and the latest second waiting timestamp can be selected from the N+1 fourth timestamps, and the first waiting timestamp can be used as the start time and the second waiting timestamp as the end time to constitute a single specified time period, which can then be used as the communication anomaly record.
[0134] In another example, communication error logs can also be generated in the following way:
[0135] Based on N+1 fourth timestamps, obtain the second query time, To retrieve the second query content, Based on the second query time and the second query content, a communication anomaly record is generated.
[0136] Here, the second query time can be obtained based on only N+1 fourth timestamps. For example, the earliest third waiting timestamp and the latest fourth waiting timestamp can be selected from the N+1 fourth timestamps, and the third waiting timestamp can be used as the start time and the fourth waiting timestamp as the end time to form a single specified time period, which can then be defined as the second query time.
[0137] In the embodiments of this disclosure, the second query content may include at least one of the MES's message receiving mechanism, thread calling mechanism, and hardware device performance. Here, hardware device performance may include CPU utilization, memory utilization, disk I / O performance, etc.
[0138] It should be noted that in the embodiments of this disclosure, the execution order of steps S317 and S318 may be reversed; that is, step S317 may be executed first, followed by step S318, or step S318 may be executed first, followed by step S317. This is not limited to the embodiments of this disclosure.
[0139] In step S319, the heartbeat transmit flag is reset (i.e., HB_SENT=0) and the heartbeat receive flag bit is reset (i.e., HB_RECEIVED=0).
[0140] In the embodiments of this disclosure, after performing step S319, that is, after resetting the heartbeat transmission flag (i.e., setting HB_SENT=0) and resetting the heartbeat reception flag bit (i.e., setting HB_RECEIVED=0), the system can return to step S302.
[0141] To better implement the above-described method for controlling the transfer of a wound yarn package, embodiments of this disclosure further provide a transfer control device for a wound yarn package that is applied to a first controller included in a transfer control system for a wound yarn package. Hereinafter, a transfer control device 400 for a wound yarn package according to an embodiment of the disclosure will be described with reference to the schematic structural diagram shown in Figure 4.
[0142] The winding package transfer control device 400 is A business data receiving unit 401 for receiving target business data transmitted by a target controller, with each of the multiple second controllers designated as a target controller, If it is determined that the communication link between the first controller and the MES is in a normal state, a business data transmission unit 402 for transmitting target business data to the MES (where the MES is used to obtain a target transfer instruction based on the target business data and to transmit the target transfer instruction to the first controller) is provided, A transport instruction receiving unit 403 for receiving target transport instructions transmitted by MES, A transfer instruction transmission unit 404 for transmitting a target transfer instruction to a target controller (where the target controller is used to perform transfer control operations on a wound yarn package product passing through a target work station corresponding to the target controller, based on the target transfer instruction), Includes.
[0143] In several selectable implementation configurations, the business data transmission unit 402 is: To generate a communication detection request, Sending a communication detection request to the MES (where the MES generates detection response information corresponding to the communication detection request and sends the detection response information to the first controller), If detection response information transmitted by the MES is received within a predetermined waiting time, it is determined that the communication link between the first controller and the MES is in a normal state. It is used for this purpose.
[0144] In some selectable implementations, the winding package transfer control device 400 further includes a response record generation unit. When detection response information sent by MES is received within a predetermined waiting time, the detection response information is identified, and the identification result of the detection response information is obtained. If the identification result satisfies a pre-configured identification requirement, a first response record is generated to indicate that the detection response information belongs to the correct response, Alternatively, if the identification result does not satisfy the pre-configured identification requirement, a second response record is generated to indicate that the detection response information belongs to an error response. It is used for this purpose.
[0145] In some of the selectable implementation configurations, the response recording generation unit is: The first controller obtains a first timestamp recorded when it receives detection response information transmitted by the MES, Update the historical heartbeat count value and obtain the current heartbeat count value, To generate a first response record based on the first timestamp and the current heartbeat count value. It is used for this purpose.
[0146] In some of the selectable implementation configurations, the response recording generation unit is: Obtain the second timestamp recorded when the first controller sends a communication detection request to the MES, The first controller obtains a third timestamp recorded when it receives detection response information transmitted by the MES, Based on the second and third timestamps, a second response record is generated, It is used for this purpose.
[0147] In some of the selectable implementation configurations, the response recording generation unit is: Based on the second and third timestamps, obtain the first query time, To retrieve the content of the first query, Based on the first query time and the first query content, generate a second response record. It is used for this purpose.
[0148] In some of the selectable implementations, the first query content includes at least one of the MES's thread invocation mechanism and hardware device performance.
[0149] In some selectable implementations, the winding package transfer control device 400 further includes an abnormality record generation unit. If detection response information sent by the MES is not received within a predetermined waiting time, an abnormality detection result is generated to indicate that the communication link between the first controller and the MES is in an abnormal state. Based on the anomaly detection results, update the historical anomaly count N and obtain the current anomaly count N+1 (where N≧0 and is an integer, and the current anomaly count N+1 represents that N+1 anomaly detection results have already been generated), If the current number of anomalies (N+1) exceeds a pre-set threshold, a communication anomaly record will be generated. It is used for this purpose.
[0150] In several selectable implementation configurations, the anomaly record generation unit is: Obtain N+1 fourth timestamps, one for each of the N+1 anomaly detection results, To generate a communication anomaly record based on N+1 fourth timestamps. It is used for this purpose.
[0151] In several selectable implementation configurations, the anomaly record generation unit is: Based on N+1 fourth timestamps, obtain the second query time, To retrieve the second query content, Based on the second query time and second query content, generate a communication anomaly record. It is used for this purpose.
[0152] In some of the selectable implementations, the second query content includes at least one of the MES's message receiving mechanism, thread invocation mechanism, and hardware device performance.
[0153] For a description of the specific functions and examples of each unit in the winding package transfer control device 400 according to the embodiments of this disclosure, please refer to the description of the corresponding steps in the above-described method embodiment, and the description will be omitted here.
[0154] The acquisition, storage, and application of user profile information described in this disclosure all comply with the provisions of applicable laws and regulations and do not violate public order and morals.
[0155] Figure 5 is a structural block diagram of an electronic device according to one embodiment of the present disclosure. As shown in Figure 5, the electronic device includes a memory 501 and a processor 502, the memory 501 storing a computer program executable by the processor 502. The number of memories 501 and processors 502 may be one or more. The memory 501 may store one or more computer programs. When the one or more computer programs are executed by the electronic device, the electronic device can perform the method provided in the above embodiment of the method. The electronic device may further include a communication interface 503 for communicating with external devices and exchanging and transmitting data.
[0156] If the memory 501, processor 502, and communication interface 503 are separate components, they can be connected to each other and communicate with each other via a bus. This bus may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, etc. This bus can be divided into an address bus, a data bus, a control bus, etc. For convenience, Figure 5 shows only one thick line, but this does not mean that there is only one bus or only one type of bus.
[0157] Selectively, as a concrete implementation, if the memory 501, processor 502, and communication interface 503 are integrated onto a single chip, the memory 501, processor 502, and communication interface 503 can communicate with each other via an internal interface.
[0158] The aforementioned processor may be a CPU, but may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), other programmable logic devices, discrete gates, transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any ordinary processor. The processor may also be a processor that supports the ARM (Advanced RISC Machine) architecture.
[0159] Furthermore, the memory may selectively include read-only memory and random access memory, or non-volatile random access memory. The memory may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Non-volatile memory may include ROM (Read-Only Memory), Programmable ROM (PROM), Erasable PROM (EPROM), Electrically EPROM (EEPROM), or flash memory. Volatile memory may include Random Access Memory (RAM) used as an external cache. The above description is illustrative and not restrictive. Many forms of RAM are available. For example, static random access memory (Static RAM, SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Date SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchlink dynamic random access memory (Synchlink DRAM, SLDRAM), and direct memory bus random access memory (Direct RAM BUS RAM, DR RAM) may be used.
[0160] In the embodiments described above, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. If implemented by software, all or part of the embodiments may be implemented 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, all or part of the flows or functions described in the embodiments of this disclosure are generated. The computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable device. The computer instructions may be stored on a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired connection (e.g., coaxial cable, optical fiber, digital subscriber line, DSL) or wireless connection (e.g., infrared, Bluetooth®, microwave, etc.). The computer-readable storage medium may be any available medium accessible by a computer, or it may be a data storage device such as a server or data center that includes one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, or magnetic tapes), optical media (e.g., Digital Versatile Discs (DVDs)), semiconductor media (e.g., Solid State Disks (SSDs)), etc. The computer-readable storage medium according to this disclosure may also be a non-volatile storage medium, in other words, a non-temporary storage medium.
[0161] Those skilled in the art will understand that all or part of the steps for realizing the above embodiment may be completed by hardware, or by a program that instructs the relevant hardware, and that the program may be stored in a computer-readable storage medium, the storage medium may be a read-only memory, a magnetic disk, or an optical disk, etc.
[0162] In the descriptions of the embodiments of this disclosure, terms such as “one embodiment,” “several embodiments,” “example,” “specific example,” or “several examples” mean that the specific features, structures, materials, or characteristics described in relation to such embodiment or example are included in at least one embodiment or example of this disclosure. Furthermore, the specific features, structures, materials, or characteristics described may be combined in an appropriate manner in any one or more embodiments or examples. In addition, a person skilled in the art may combine different embodiments or examples and features in different embodiments or examples described herein, provided that they do not conflict with each other.
[0163] In the description of the embodiments of this disclosure, unless otherwise specified, " / " means "or," for example, "A / B" can represent "A" or "B." The "and / or" statements in this specification are merely related relationships that describe related subjects, and mean that there are three possible relationships, for example, "A and / or B" can indicate three situations: "A" exists alone, "A" and "B" exist together, and "B" exists alone.
[0164] In the description of the embodiments of this disclosure, the terms “first,” “second,” and “third” are for distinction purposes only and should not be understood to indicate or imply relative importance or the number of designated constituent elements. Thus, features limited by “first,” “second,” and “third” may explicitly or implicitly include one or more such features. In the description of the embodiments of this disclosure, unless otherwise specified, “multiple” means two or more.
[0165] The foregoing are merely illustrative examples of the Disclosure and do not limit the Disclosure. Any modifications, equivalent substitutions, or improvements made to the spirit and principles of the Disclosure should be included within the scope of the claims of the Disclosure.
Claims
1. A method for controlling the transfer of a yarn package, applied to a first controller included in a yarn package transfer control system, The transfer control system for the wound yarn package further includes a manufacturing execution system that communicates with the first controller and a plurality of second controllers, each of the plurality of second controllers having a corresponding wound yarn package work station, and used to acquire operational data relating to the wound yarn package work station and to perform transfer control operations on wound yarn package products passing through the wound yarn package work station. The aforementioned method, Each of the aforementioned plurality of second controllers is designated as a target controller, and the target business data transmitted by the target controller is received. If it is determined that the communication link between the first controller and the manufacturing execution system is in a normal state, the target business data is transmitted to the manufacturing execution system (wherein the manufacturing execution system acquires a target transfer instruction based on the target business data and transmits the target transfer instruction to the first controller), Receiving the target transfer instruction transmitted by the manufacturing execution system, Transmitting the target transfer instruction to the target controller (wherein the target controller is used to perform transfer control operations on the wound yarn package product passing through the target work station corresponding to the target controller, based on the target transfer instruction), A method for controlling the transfer of a wound yarn package, including the package itself.
2. The determination that the communication link between the first controller and the manufacturing execution system is in a normal state means that To generate a communication detection request, Transmitting the aforementioned communication detection request to the manufacturing execution system (wherein the manufacturing execution system generates detection response information corresponding to the communication detection request and transmits the detection response information to the first controller), When the detection response information transmitted by the manufacturing execution system is received within a predetermined waiting time, it is determined that the communication link between the first controller and the manufacturing execution system is in a normal state. The method according to claim 1, including the method described in claim 1.
3. When the detection response information transmitted by the manufacturing execution system is received within a predetermined waiting time, the system identifies the detection response information and obtains the identification result of the detection response information. If the identification result satisfies a pre-set identification requirement, a first response record is generated to indicate that the detection response information belongs to the correct response. Alternatively, if the identification result does not satisfy the pre-set identification requirement, a second response record is generated to indicate that the detection response information belongs to an error response. The method according to claim 2, further comprising:
4. The above-mentioned generation of the first response record is The first controller obtains a first timestamp recorded when it receives the detection response information transmitted by the manufacturing execution system, Update the historical heartbeat count value and obtain the current heartbeat count value, Based on the first timestamp and the current heartbeat count value, a first response record is generated. The method according to claim 3, including the method described in claim 3.
5. The above-mentioned generation of the second response record is Obtaining a second timestamp recorded when the first controller transmits the communication detection request to the manufacturing execution system, The first controller obtains a third timestamp recorded when it receives the detection response information transmitted by the manufacturing execution system, Based on the second timestamp and the third timestamp, a second response record is generated, The method according to claim 3, including the method described in claim 3.
6. The above-mentioned generation of the second response record is Based on the second and third timestamps, obtain the first query time, To retrieve the content of the first query, Based on the first query time and the first query content, the second response record is generated, The method according to claim 5, including the method described in claim 5.
7. The method according to claim 6, wherein the first query content includes at least one of a thread calling mechanism of a manufacturing execution system and hardware device performance.
8. If the detection response information transmitted by the manufacturing execution system is not received within the predetermined waiting time, an abnormality detection result is generated to indicate that the communication link between the first controller and the manufacturing execution system is in an abnormal state. Based on the aforementioned anomaly detection results, the history anomaly count N is updated, and the current anomaly count N+1 is obtained (where N ≥ 0 and is an integer, and the current anomaly count N+1 represents that N+1 anomaly detection results have already been generated), If the current number of anomalies N+1 is greater than or equal to a preset threshold number, a communication anomaly record is generated. The method according to claim 2, further comprising:
9. The above-mentioned generation of communication error records is To obtain N+1 fourth timestamps, one for each of the N+1 anomaly detection results, The communication anomaly record is generated based on the N+1 fourth timestamps, The method according to claim 8, including the method described in claim 8.
10. The above-mentioned generation of the communication anomaly record based on the N+1 fourth timestamps is, Based on the N+1 fourth timestamps, the second query time is obtained, Retrieve the second query content, Based on the second query time and the second query content, the communication anomaly record is generated, The method according to claim 9, including the method described in claim 9.
11. The method according to claim 10, wherein the second query content includes at least one of a message receiving mechanism, a thread calling mechanism, and hardware device performance of a manufacturing execution system.
12. A transfer control device for a winding package, applied to a first controller included in a winding package transfer control system, The transfer control system for the wound yarn package further includes a manufacturing execution system that communicates with the first controller and a plurality of second controllers, each of the plurality of second controllers having a corresponding wound yarn package work station, and used to acquire operational data relating to the wound yarn package work station and to perform transfer control operations on wound yarn package products passing through the wound yarn package work station. The aforementioned device is Each of the plurality of second controllers is designated as a target controller, and a business data receiving unit is provided for receiving target business data transmitted by the target controllers. When it is determined that the communication link between the first controller and the manufacturing execution system is in a normal state, a business data transmission unit for transmitting the target business data to the manufacturing execution system (where the manufacturing execution system is used to acquire a target transfer instruction based on the target business data and transmit the target transfer instruction to the first controller) is provided, A transfer instruction receiving unit for receiving the target transfer instruction transmitted by the manufacturing execution system, A transfer instruction transmission unit for transmitting the target transfer instruction to the target controller (wherein the target controller is used to perform transfer control operations on a wound yarn package product passing through a target work station corresponding to the target controller, based on the target transfer instruction), A transfer control device for a wound yarn package, including the windings.
13. At least one processor, Includes memory that is communicably connected to at least one processor, An electronic device wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the method according to claim 1.
14. A non-temporary, computer-readable storage medium storing computer commands used to cause a computer to perform the method described in claim 1.
Citation Information
Patent Citations
Conveying system
JP1998338314A
Carrying system
JP2012012181A
Conveyance system
JP2014221685A
Transport controlling system, transport controlling method, and controlling program
JP2020203787A
Conveying control device, conveying control program, and conveying control method
JP4492525B2