Wire spindle station-crossing control method and device, electronic equipment and storage medium
By using the first controller and the second controller to process business data in the wire ingot crossing control system, the efficient flow and station transfer decision of the wire ingot product at the wire ingot station is solved, and the inefficiency of the wire ingot product assembly line is solved. The problem is that the efficient operation of the pipeline is achieved.
Patent Information
- Application Number
- CN202411375294.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-01-07
AI Technical Summary
In the production process of wire ingot products, the prior art is difficult to ensure that wire ingot products flow efficiently and accurately when passing through the wire ingot station, resulting in inefficient assembly line.
By introducing a first controller and a plurality of second controllers in the wire ingot crossing control system, the first controller is used as an intermediate layer to receive and process target service data, and send data to the normal state of the communication link Manufacturing Execution System (MES) to ensure the accuracy and reliability of cross-stop instructions, thereby achieving efficient flow and cross-stop control of ingot products.
This method improves the scalability and security of the wire ingot crossing control system, reduces the data processing burden of MES, simplifies the network structure, and ensures efficient flow of wire ingot products and accurate station passing decisions during wire ingot stations. , maintains efficient operation of the pipeline.
Smart Images

Figure CN119270719A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computers and automatic control, and in particular to a method, device, electronic equipment and storage medium for controlling a spinning ingot passing through a station. Background Art
[0002] In the production process of ingot products, building an efficient production line is an indispensable core link to ensure production capacity and production efficiency. There are multiple closely connected ingot stations that require high coordination on this production line. Each ingot station is responsible for performing specific production operations on ingot products. Ensuring that ingot products can flow efficiently and accurately when passing through the ingot stations and / or decide whether to pass through the stations is the key to maintaining efficient operation of the production line. Summary of the invention
[0003] The present disclosure provides a method, device, electronic device and storage medium for controlling a wire ingot passing through a station, so as to solve or alleviate one or more technical problems in the prior art.
[0004] In a first aspect, the present disclosure provides a method for controlling a wire ingot passing station, which is applied to a first controller included in a wire ingot passing station control system, wherein the wire ingot passing station control system further includes a manufacturing execution system and a plurality of second controllers communicating with the first controller; wherein each of the plurality of second controllers is connected to a corresponding wire ingot workstation to obtain business data related to the wire ingot workstation, and to perform a passing station control operation for a wire ingot product passing through the wire ingot workstation;
[0005] The method includes:
[0006] Taking each second controller among the plurality of second controllers as a target controller, and receiving target service data sent by the target controller;
[0007] When 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; wherein the manufacturing execution system is used to obtain a target station passing indication based on the target business data, and send the target station passing indication to the first controller;
[0008] Receive target transit instructions sent by the manufacturing execution system;
[0009] A target station passing indication is sent to a target controller; wherein the target controller is used to perform a station passing control operation for the silk ingot product passing through the target station corresponding to the target controller based on the target station passing indication.
[0010] In a second aspect, the present disclosure provides a wire ingot station-passing control device, which is applied to a first controller included in a wire ingot station-passing control system, and the wire ingot station-passing control system further includes a manufacturing execution system and a plurality of second controllers communicating with the first controller; wherein each of the plurality of second controllers has a corresponding wire ingot station, so as to obtain business data related to the wire ingot station, and perform a station-passing control operation for a wire ingot product passing through the wire ingot station;
[0011] The device includes:
[0012] A service data receiving unit, configured to use each of the plurality of second controllers as a target controller and receive target service data sent by the target controller;
[0013] A service data sending unit is used to send target service data to the manufacturing execution system when it is determined that the communication link between the first controller and the manufacturing execution system is in a normal state; wherein the manufacturing execution system is used to obtain a target station passing indication based on the target service data, and send the target station passing indication to the first controller;
[0014] A station-passing instruction receiving unit, used for receiving a target station-passing instruction sent by a manufacturing execution system;
[0015] The station passing indication sending unit is used to send the target station passing indication to the target controller; wherein the target controller is used to perform the station passing control operation for the silk ingot product passing through the target workstation corresponding to the target controller based on the target station passing indication.
[0016] In a third aspect, the present disclosure provides an electronic device, including:
[0017] at least one processor; and
[0018] a memory communicatively connected to the at least one processor; wherein,
[0019] 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 to enable the at least one processor to execute any method in the embodiments of the present disclosure.
[0020] In a fourth aspect, the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute any method according to the embodiments of the present disclosure.
[0021] The technical solution provided by the present disclosure can ensure that the silk ingot products can flow efficiently and accurately when passing through the silk ingot station and decide whether to pass the station, so as to maintain the efficient operation of the assembly line.
[0022] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended 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
[0023] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments provided according to the present disclosure and should not be regarded as limiting the scope of the present disclosure.
[0024] Figure 1 A schematic structural block diagram of a spindle passing station control system provided in an embodiment of the present disclosure;
[0025] Figure 2 A schematic diagram of a flow chart of a method for controlling a spinning ingot passing station provided by an embodiment of the present disclosure;
[0026] Figure 3 A schematic diagram of part of the flow chart involved in a method for controlling a spinning ingot passing station provided in an embodiment of the present disclosure;
[0027] Figure 4 A schematic structural block diagram of a spindle passing station control device provided in an embodiment of the present disclosure;
[0028] Figure 5 A schematic structural block diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] The present disclosure will be further described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0030] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present disclosure.
[0031] As described in the background technology, in the production process of silk ingot products, building an efficient production line is an indispensable core link to ensure production capacity and production efficiency. There are multiple closely connected and highly coordinated silk ingot stations distributed on this production line, and each silk ingot station is responsible for performing specific production operations on the silk ingot products. Among them, multiple silk ingot stations may include a weighing station for weighing silk ingot products, an external inspection station for intelligent external inspection of silk ingot products, a bagging station for bagging silk ingot products, etc. Ensuring that the silk ingot products can efficiently and accurately circulate and / or decide whether to pass the station when passing through the silk ingot station is the key to maintaining the efficient operation of the production line. Based on this, in order to ensure that the silk ingot products can efficiently and accurately circulate and / or decide whether to pass the station when passing through the silk ingot station, so as to maintain the efficient operation of the production line, the embodiment of the present disclosure provides a silk ingot passing station control method.
[0032] Before describing the ingot passing station control method provided by the embodiment of the present disclosure, it should be noted that, in the embodiment of the present disclosure, the main types of ingot products may include at least one of Partially Oriented Yarns (POY), Fully Drawn Yarns (FDY), Draw Textured Yarns (DTY) (or low-elastic yarn), etc. For example, the types of ingot products may specifically include polyester Partially Oriented Yarns, polyester Fully Drawn Yarns, polyester Drawn Yarns, polyester low-elastic yarns (Polyester Draw Textured Yarns), etc.
[0033] The following will be combined Figure 1 and Figure 2 , a method for controlling the passing of a silk ingot through a station provided in an embodiment of the present disclosure is described.
[0034] first, Figure 1A schematic structural block diagram of a wire ingot passing station control system provided for an embodiment of the present disclosure includes a first controller, a manufacturing execution system (MES) and multiple second controllers communicating with the first controller. The first controller may be a programmable logic controller (PLC); the second controller may also be a PLC; the MES may be applied to a terminal device or a server. Here, the terminal device may be a workbench, a mainframe computer, a conventional computer (e.g., a desktop computer, a laptop computer) or other similar computing devices.
[0035] In the embodiment of the present disclosure, each of the plurality of second controllers has a corresponding ingot station (the number is at least one) for obtaining business data related to the ingot station. Among them, the business data may include the equipment status, quality control reference data, etc. obtained by the production control equipment during the production process of the ingot product, and may also include the production progress, etc. Here, the equipment status may include the operating status, fault record, maintenance status, etc. of the production control equipment; the quality control reference data may include the weight of the ingot of the ingot product, the results of the external inspection of the ingot, etc.; the production progress may include the completion time of each production stage, the current output statistics, etc. For example, if the ingot station is a weighing station, the business data related to the weighing station may include the weight of the ingot obtained by the weighing sensor (belonging to the production control equipment) during the production process of the ingot product (belonging to the quality control reference data). For another example, if the ingot station is an external inspection station, the business data related to the external inspection station may include the results of the external inspection of the ingot obtained by the external inspection equipment (belonging to the production control equipment) during the production process of the ingot product (belonging to the quality control reference data).
[0036] For each of the multiple second controllers, after the second controller obtains the business data related to the silk ingot station corresponding to itself and sends the business data to the first controller, and then the first controller sends the business data to the MES, the MES can obtain the station-passing indication related to the silk ingot station based on the business data, and send the station-passing indication to the first controller, and then the first controller sends the station-passing indication to the second controller, so that the second controller can perform the station-passing control operation for the silk ingot product passing through the silk ingot station based on the station-passing indication. Among them, the station-passing control operation can be realized by the station-passing control equipment (for example, silk ingot diversion equipment, transfer robot, etc.) set at the silk ingot station; the station-passing control operation is used to control the flow of the silk ingot product passing through the silk ingot station and / or control whether to pass the station (allowing the station-passing or prohibiting the station-passing).
[0037] Please combine Figure 2, which is a flow chart of a method for controlling a wire ingot passing station provided by an embodiment of the present disclosure, and is applied to a first controller included in a wire ingot passing station control system. In addition, it should be noted that, although a logical sequence is shown in the flow chart, in some cases, the steps shown or described may also be performed in other sequences.
[0038] Step S201: taking each second controller among the plurality of second controllers as a target controller, and receiving target service data sent by the target controller.
[0039] Among them, at least one ingot station corresponding to the target controller includes the target station, and the target controller can obtain business data related to the target station. In the embodiment of the present disclosure, for the convenience of description, the business data related to the target station can be used as the target business data.
[0040] Step S202: When it is determined that the communication link between the first controller and the MES is in a normal state, the target service data is sent to the MES.
[0041] The first controller may establish a communication link with the MES through a network or a management interface (MI) communication method. After receiving the target business data sent by the target controller, the first controller may convert the target business data according to a preset data format to obtain the target business data after format conversion that can be processed by the MES, and send the target business data after format conversion to the MES when it is determined that the communication link between the first controller and the MES is in a normal state.
[0042] In addition, in the embodiment of the present disclosure, the MES is used to obtain a target station-passing indication based on the target business data (e.g., the target business data after format conversion), and send the target station-passing indication to the first controller. The target station-passing indication is used to instruct the target controller to perform a station-passing control operation for the silk ingot product passing through the target station.
[0043] Step S203, receiving the target transit indication sent by the MES.
[0044] Step S204: sending the target transit indication to the target controller.
[0045] The target controller is used to perform a station-passing control operation for the silk ingot product passing through the target station based on the target station-passing indication. Here, the station-passing control operation can be implemented by a station-passing control device set at the target station corresponding to the target controller; the station-passing control operation is used to control the flow of the silk ingot product passing through the target station and / or whether to pass the station.
[0046] By adopting the ingot passing control method provided by the embodiment of the present disclosure, on the one hand, by using the first controller as the middle layer between multiple second controllers and MES, the first controller can be used to realize the centralized management and integration of business data, thereby reducing the data processing burden of MES, and can also enhance the scalability and security of the ingot passing control system. At the same time, the network structure of the ingot passing control system can be simplified, thereby improving the stability of the ingot passing control system; on the other hand, after receiving the target business data sent by the target controller, the first controller will only send the target business data to the MES when it is determined that the communication link between it and the MES is in a normal state. MES, in this way, it can avoid sending the target business data to MES when the communication link between the first controller and MES is in an abnormal state, which may cause the target business data to be damaged or lost, thereby ensuring that the target business data can be accurately received by MES, and then ensuring that MES can obtain accurate target station passing indications based on these target business data, so that the target controller can accurately perform the station passing control operation for the silk ingot products passing through the target workstation based on the target station passing indications, that is, to ensure that the silk ingot products can efficiently and accurately circulate and / or decide whether to pass the station when passing the silk ingot workstation, so as to maintain the efficient operation of the assembly line.
[0047] In addition, it should be noted that in the embodiment of the present disclosure, after receiving the target business data, the MES can determine the transit evaluation mechanism corresponding to the target business data based on the data attributes of the target business data, and obtain the target transit indication based on the target business data according to the transit evaluation mechanism.
[0048] For example, the target business data is the external inspection result of the silk ingot, and the pass-station evaluation mechanism corresponding to the target business data may be: when the external inspection result of the silk ingot indicates that the silk ingot product is an S-grade product, a first pass-station indication is obtained (the pass-station control operation corresponding to the first pass-station indication is to divert the silk ingot product from the mainstream pipeline to the first pipeline); when the external inspection result of the silk ingot indicates that the silk ingot product is an A-grade product, a second pass-station indication is obtained (the pass-station control operation corresponding to the second pass-station indication is to divert the silk ingot product from the mainstream pipeline to the second pipeline); when the external inspection result of the silk ingot indicates that the silk ingot product is a B-grade product, a third pass-station indication is obtained (the pass-station control operation corresponding to the third pass-station indication is to divert the silk ingot product from the mainstream pipeline to the third pipeline).
[0049] For another example, the target business data is the weight of the silk ingot, and the station passing evaluation mechanism corresponding to the target business data may be: when the silk ingot weight is within the preset weight range, a first station passing indication is obtained (the station passing control operation corresponding to the first station passing indication is to allow the station passing); when the silk ingot weight exceeds the preset weight range, a second station passing indication is obtained (the station passing control operation corresponding to the second station passing indication is to prohibit the station passing). The preset weight range can be set according to actual application requirements, and the embodiments of the present disclosure do not limit this.
[0050] In some optional implementations, “determining that the communication link between the first controller and the MES is in a normal state” in step S202 may include:
[0051] generating a communication detection request;
[0052] Sending a communication detection request to the MES; wherein the MES is used to generate detection response information corresponding to the communication detection request, and send the detection response information to the first controller;
[0053] When the detection response information sent by the MES is received within the preset waiting time, it is determined that the communication link between the first controller and the MES is in a normal state.
[0054] In an example, the communication detection request may be represented as HB_REQUEST_MSG, which may specifically include:
[0055] 026MT=HB**,ST=10086***,END
[0056] Among them, "026" is used to represent the message length of the communication detection request; "MT=HB**" is used to represent that the message category of the communication detection request is a heartbeat request information; "ST=10086***" is used to identify the first controller; and "END" is the end mark of the communication detection request.
[0057] In an example, the detection response information may be represented as HB_RESPONSE_MSG, which may specifically include:
[0058] 026MT=HBS*,ST=10086***,END
[0059] Among them, "026" is used to represent the message length of the detection response information; "MT=HBS*" is used to represent that the message category of the detection response information is heartbeat response information; "ST=10086***" is used to identify the first controller; and "END" is the end mark of the detection response information.
[0060] In addition, in the embodiment of the present disclosure, a communication detection request may be generated when a preset detection requirement is met. The preset detection requirement may include that when the heartbeat detection mechanism is enabled (ie, HB_ENABLED=1) and the timing duration of the heartbeat timer is greater than or equal to the preset heartbeat interval (ie, HB_TIMER>=HB_INTERVAL), the preset request sending requirement is also met. The preset request sending requirement may include:
[0061] The communication detection request is empty (ie, HB_REQUEST_MSG = ");
[0062] The detection response information is empty (ie, HB_RESPONSE_MSG = ");
[0063] The heartbeat send flag is reset (ie, HB_SENT=0);
[0064] The heartbeat receive flag is reset (ie, HB_RECEIVED=0).
[0065] The preset waiting time can be set according to actual application requirements, for example, it can be set to 2S, and the embodiment of the present disclosure does not limit this.
[0066] In the above manner, in the embodiment of the present disclosure, a detection of whether the communication link between the first controller and the MES is in a normal state can be actively initiated by generating and sending a communication detection request. This active detection mechanism can confirm in a timely manner that the communication link between the first controller and the MES is in a normal state, thereby ensuring that the target business data can be sent to the MES in a timely manner, reducing the delayed transmission of the target business data, and more effectively maintaining the efficient operation of the assembly line.
[0067] Further, in the embodiment of the present disclosure, after determining that the communication link between the first controller and the MES is in a normal state and sending the target service data to the MES, the heartbeat result flag can be set (that is, HB_OK=1); or, after determining that the communication link between the first controller and the MES is in a normal state, the heartbeat result flag can be set (that is, HB_OK=1), and then the target service data can be sent to the MES. Thereafter, the heartbeat sending flag is set (that is, HB_SENT=1), and the timing duration of the heartbeat timer is reset (that is, HB_TIMER=0).
[0068] In some optional implementations, the method for controlling the ingot passing station may further include:
[0069] When the detection response information sent by the MES is received within the preset waiting time, the detection response information is identified to obtain an identification result of the detection response information;
[0070] When the recognition result meets the preset recognition requirement, a first response record is generated; wherein the first response record is used to indicate that the detection response information is a correct response;
[0071] Alternatively, when the recognition result does not meet the preset recognition requirement, a second response record is generated; wherein the second response record is used to indicate that the detection response information is an erroneous response.
[0072] Among them, identifying the detection response information can be identifying the message length of the detection response information, obtaining the identification result of the detection response information (that is, the message length), and when the identification result of the detection response information is equal to a preset length threshold (for example, 26), determining that the identification result meets the preset identification requirement, and then generating a first response record to characterize that the detection response information is a correct response; when the identification result of the detection response information is not equal to the preset length threshold, determining that the identification result does not meet the preset identification requirement, and then generating a second response record to characterize that the detection response information is an incorrect response. Here, the second response record can be identified by error code 3586.
[0073] Through the above manner, in the embodiment of the present disclosure, when the detection response information sent by the MES is received within the preset waiting time, the detection response information can be identified to obtain the identification result of the detection response information. Thereafter, not only can a first response record be generated when the identification result meets the preset identification requirements to characterize that the detection response information is a correct response, but also a second response record can be generated when the identification result does not meet the preset identification requirements to characterize that the detection response information is an incorrect response. In this way, when it is detected that the second response record has been generated, it can be determined that the MES has some potential safety hazards that may affect stability, so that corresponding processing measures can be taken in advance to optimize the MES.
[0074] Further, in the disclosed embodiment, the detection response information sent by the MES is received within the preset waiting time, and the detection response information is identified to obtain the identification result of the detection response information, and then when the identification result meets the preset identification requirements, after generating the first response record, the detection response information can also be reset (that is, set HB_RESPONSE_MSG=0), and the heartbeat reception flag is set (that is, set HB_RECEIVED=1). Thereafter, the heartbeat sending flag is reset (that is, set HB_SENT=0), and the heartbeat reception flag is reset (that is, HB_RECEIVED=0).
[0075] Similarly, in the embodiment of the present disclosure, the detection response information sent by the MES is received within the preset waiting time, and the detection response information is identified to obtain the identification result of the detection response information. If the identification result does not meet the preset identification requirements, after generating a second response record, the heartbeat sending flag can also be reset (that is, set HB_SENT=0), and the heartbeat receiving flag can be reset (that is, HB_RECEIVED=0).
[0076] In some optional implementations, “generating a first response record” may include:
[0077] Obtaining a first timestamp recorded by the first controller when receiving the detection response information sent by the MES;
[0078] Update the historical heartbeat count value to obtain the current heartbeat count value;
[0079] Based on the first timestamp and the current heartbeat count value, a first response record is generated.
[0080] The historical heartbeat count values can be obtained in the following ways:
[0081] When the preset heartbeat storage space of the first controller is empty, a first heartbeat count value is randomly generated as a historical heartbeat count value; when the preset heartbeat storage space of the first controller is not empty, a second heartbeat count value stored in the preset heartbeat storage space is used as the historical heartbeat count value.
[0082] In one example, after obtaining the historical heartbeat count value, the historical heartbeat count value can be "+1" operated to obtain the current heartbeat count value, and a first response record is generated based on the first timestamp and the current heartbeat count value. For example, the first response record is composed using the first timestamp and the current heartbeat count value.
[0083] It can be understood that in the embodiment of the present disclosure, when obtaining the first timestamp recorded by the first controller when receiving the detection response information sent by the MES, and updating the historical heartbeat count value to obtain the current heartbeat count value, and generating the first response record based on the first timestamp and the current heartbeat count value, the current heartbeat count value can also be used as a new second heartbeat count value and stored in the preset heartbeat storage space to overwrite the old second heartbeat count value stored in the preset heartbeat storage space with the new second heartbeat count value.
[0084] Through the above method, in the embodiment of the present disclosure, the first timestamp recorded by the first controller when receiving the detection response information sent by the MES can be obtained, and the historical heartbeat count value can be updated to obtain the current heartbeat count value, and based on the first timestamp and the current heartbeat count value, a first response record can be generated. In this way, when a second response record or other communication abnormality record appears later, a larger range of specified time periods can be obtained based on the first response record and the subsequent second response record or other communication abnormality record, so that the work log of the MES can be queried based on this larger range of specified time periods, so as to timely and accurately locate some potential safety hazards or existing stability problems that may affect the stability of the MES, so as to take corresponding treatment measures and optimize the MES.
[0085] In some optional implementations, “generating a second response record” may include:
[0086] Obtaining a second timestamp recorded by the first controller when sending the communication detection request to the MES;
[0087] Obtaining a third timestamp recorded by the first controller when receiving the detection response information sent by the MES;
[0088] Based on the second timestamp and the third timestamp, a second response record is generated.
[0089] In one example, the second timestamp and the third timestamp may be used to form a second response record. For example, the second timestamp is used as a starting time point, and the third timestamp is used as an end time point to form a specified time period as the second response record.
[0090] Based on the above examples, in the embodiments of the present disclosure, when it is detected that a second response record has been generated, it can be determined that some potential safety hazards that may affect the stability of the MES have occurred, and based on the specified time period represented by the second response record, the work log of the MES is queried, thereby accurately locating the potential safety hazards of the MES in a timely manner, so as to take corresponding treatment measures and optimize the MES.
[0091] In another example, the second response record may also be generated in the following manner:
[0092] Based on the second timestamp and the third timestamp, obtain the first query time;
[0093] Get the first query content;
[0094] A second response record is generated based on the first query time and the first query content.
[0095] The first query time may be a specified time period starting from the second timestamp and ending at the third timestamp; the first query content may include at least one of the thread calling mechanism of the MES and the performance of the hardware device. Here, the performance of the hardware device may include the CPU occupancy rate, the memory occupancy rate, the input and output performance of the disk, etc.
[0096] Based on the above examples, in the embodiment of the present disclosure, when it is detected that a second response record has been generated, it can be determined that some potential safety hazards that may affect the stability of the MES have occurred, and based on the first query time included in the second response record, the part of the MES work log related to the thread calling mechanism and the hardware device performance is queried, thereby more timely and accurately locating the potential safety hazards of the MES, so as to take corresponding processing measures and optimize the MES.
[0097] In summary, through the above method, in the embodiment of the present disclosure, the second timestamp recorded by the first controller when sending the communication detection request to the MES can be obtained, and the third timestamp recorded by the first controller when receiving the detection response information sent by the MES can be obtained, and based on the second timestamp and the third timestamp, a second response record is generated. In this way, when it is detected that the second response record is generated, it can be determined that the MES has some potential safety hazards that may affect the stability, and the work log of the MES can be queried based on the second response record, so as to promptly confirm the potential safety hazards of the MES, so as to take corresponding treatment measures and optimize the MES in a timely manner.
[0098] In some optional implementations, the method for controlling the ingot passing station may further include:
[0099] If the detection response information sent by the MES is not received within the preset waiting time, an abnormal detection result is generated; wherein the abnormal detection result is used to indicate that the communication link between the first controller and the MES is in an abnormal state;
[0100] Based on the anomaly detection result, the historical anomaly number N is updated to obtain the current anomaly number N+1; wherein N≥0 and is an integer, and the current anomaly number N+1 is used to indicate that N+1 anomaly detection results have been generated;
[0101] When the current abnormal number N+1 is greater than or equal to the preset number threshold, a communication abnormality record is generated.
[0102] The historical abnormal number N can be obtained in the following ways:
[0103] When the preset abnormal number storage space of the first controller is empty, the historical abnormal number N is determined to be 0; when the preset abnormal number storage space of the first controller is not empty, the abnormal number value stored in the preset abnormal number storage space is used as the historical abnormal number N.
[0104] In one example, after obtaining the historical abnormal number N, the historical abnormal number N can be "+1" operated to obtain the current abnormal number N+1, and when the current abnormal number N+1 is greater than or equal to the preset number threshold, a communication abnormality record is generated. Here, the communication abnormality record can be identified by error code 3306.
[0105] It can be understood that in the embodiment of the present disclosure, if the detection response information sent by the MES is not received within the preset waiting time, an abnormality detection result is generated, and based on the abnormality detection result, the historical abnormality number N is updated to obtain the current abnormality number N+1. The current abnormality number N+1 can also be used as a new abnormality number value and stored in the preset abnormality number storage space to use the new abnormality number value to overwrite the old abnormality number value stored in the preset abnormality number storage space.
[0106] In addition, in the embodiment of the present disclosure, the preset number threshold can be set according to actual application requirements, for example, it can be set to 3, and the embodiment of the present disclosure does not limit this.
[0107] Through the above method, in the embodiment of the present disclosure, when the detection response information sent by the MES is not received within the preset waiting time, an abnormal detection result can be generated, and based on the abnormal detection result, the historical abnormal number N is updated to obtain the current abnormal number N+1, and then when the current abnormal number N+1 is greater than or equal to the preset number threshold, a communication abnormality record is generated. In this way, when it is detected that a communication abnormality record has been generated, the stability problem that already exists in the MES can be determined, so that corresponding processing measures can be taken to optimize the MES.
[0108] Further, in the disclosed embodiment, if the detection response information sent by the MES is not received within the preset waiting time, an abnormal detection result is generated, and based on the abnormal detection result, the historical abnormal number N is updated to obtain the current abnormal number N+1. If the current abnormal number N+1 is greater than or equal to the preset number threshold, a communication abnormality record can be generated first, and then the heartbeat result flag is reset (that is, HB_OK=0); or, the heartbeat result flag is reset first (that is, HB_OK=0), and then a communication abnormality record is generated. Thereafter, the heartbeat sending flag is reset (that is, HB_SENT=0), and the heartbeat receiving flag is reset (that is, HB_RECEIVED=0).
[0109] In addition, it should be noted that in the embodiment of the present disclosure, if the detection response information sent by the MES is not received within the preset waiting time, an abnormal detection result is generated, and based on the abnormal detection result, the historical abnormal number N is updated to obtain the current abnormal number N+1. Then, if the current abnormal number N+1 is less than the preset number threshold, the communication detection request can be cleared (that is, HB_REQUEST_MSG=”).
[0110] In some optional implementations, “generating a communication abnormality record” may include:
[0111] Obtain N+1 fourth timestamps corresponding one-to-one to the N+1 anomaly detection results;
[0112] Based on the N+1 fourth timestamps, a communication abnormality record is generated.
[0113] In the disclosed embodiment, each of the N+1 abnormal detection results can be used as a target detection result, and the timestamp recorded by the first controller when sending the communication detection request corresponding to the target detection result to the MES is obtained as the fourth timestamp corresponding to the target detection result, thereby obtaining N+1 fourth timestamps corresponding one-to-one to the N+1 abnormal detection results.
[0114] In addition, in one example, a communication anomaly record may be generated based only on the N+1 fourth timestamps. For example, the earliest first standby timestamp and the latest second standby timestamp may be determined from the N+1 fourth timestamps, and a specified time period may be formed with the first standby timestamp as the starting time point and the second standby timestamp as the ending time point as the communication anomaly record.
[0115] Based on the above examples, in the embodiments of the present disclosure, when it is detected that a communication abnormality record has been generated, it is possible to determine the existing stability problems of the MES, and based on the specified time period represented by the second response record, query the work log of the MES, so as to accurately locate the existing stability problems of the MES in a timely manner, so as to take corresponding processing measures and optimize the MES.
[0116] In another example, a communication exception record may also be generated in the following manner:
[0117] Based on the N+1 fourth timestamps, obtain a second query time;
[0118] Obtaining the second query content;
[0119] A communication abnormality record is generated based on the second query time and the second query content.
[0120] The second query time can be obtained based on only N+1 fourth timestamps. For example, the earliest third standby timestamp and the latest fourth standby timestamp can be determined from the N+1 fourth timestamps, and the third standby timestamp is used as the starting time point and the fourth standby timestamp is used as the end time point to form a specified time period as the second query time.
[0121] In addition, in the embodiment of the present disclosure, the second query content may include at least one of the message receiving mechanism of the MES, the thread calling mechanism and the hardware device performance. Here, the hardware device performance may include CPU occupancy, memory occupancy, disk input and output performance, etc.
[0122] Based on the above examples, in the embodiment of the present disclosure, when it is detected that a communication abnormality record has been generated, it is possible to determine the existing stability problems of the MES, and based on the second query time included in the second response record, query the part of the MES work log related to the message receiving mechanism, thread calling mechanism and hardware device performance, so as to more accurately locate the existing stability problems of the MES in a timely manner, so as to take corresponding processing measures and optimize the MES.
[0123] The following, combined with Figure 3 , some processes involved in a wire ingot passing station control method provided in an embodiment of the present disclosure are described.
[0124] Step S301, start the ingot passing station control system.
[0125] Step S302, setting preconditions.
[0126] In the disclosed embodiment, the preconditions include that the heartbeat detection mechanism is enabled (ie, HB_ENABLED=1), and the timing duration of the heartbeat timer is greater than or equal to a preset heartbeat interval (ie, HB_TIMER>=HB_INTERVAL).
[0127] Step S303, determining whether the preset request sending requirement is met.
[0128] The preset request sending requirements include:
[0129] The communication detection request is empty (ie, HB_REQUEST_MSG = ");
[0130] The detection response information is empty (ie, HB_RESPONSE_MSG = ");
[0131] The heartbeat send flag is reset (ie, HB_SENT=0);
[0132] The heartbeat receive flag is reset (ie, HB_RECEIVED=0).
[0133] In the embodiment of the present disclosure, when the preset request sending requirement is not met, step S303 may continue to be executed; when the preset request sending requirement is met, step S304 may be entered.
[0134] Step S304: Generate a communication detection request, and send the communication detection request to the MES.
[0135] The MES is used to generate detection response information corresponding to the communication detection request, and send the detection response information to the first controller.
[0136] In an example, the communication detection request may be represented as HB_REQUEST_MSG, which may specifically include:
[0137] 026MT=HB**,ST=10086***,END
[0138] Among them, "026" is used to represent the message length of the communication detection request; "MT=HB**" is used to represent that the message category of the communication detection request is a heartbeat request information; "ST=10086***" is used to identify the first controller; and "END" is the end mark of the communication detection request.
[0139] In an example, the detection response information may be represented as HB_RESPONSE_MSG, which may specifically include:
[0140] 026MT=HBS*,ST=10086***,END
[0141] Among them, "026" is used to represent the message length of the detection response information; "MT=HBS*" is used to represent that the message category of the detection response information is heartbeat response information; "ST=10086***" is used to identify the first controller; and "END" is the end mark of the detection response information.
[0142] Step S305, determining whether the detection response information sent by the MES is received within the preset waiting time.
[0143] The preset waiting time can be set according to actual application requirements, for example, it can be set to 2S, and the embodiment of the present disclosure does not limit this.
[0144] In the embodiment of the present disclosure, when the detection response information sent by the MES is received within the preset waiting time, it can be determined that the communication link between the first controller and the MES is in a normal state, and the process proceeds to step S306; when the detection response information sent by the MES is not received within the preset waiting time, it can be determined that the communication link between the first controller and the MES is in an abnormal state, and the process proceeds to step S314.
[0145] Furthermore, in an embodiment of the present disclosure, the first controller uses each of the multiple second controllers as a target controller, and receives the target business data sent by the target controller. Then, when it is determined that the communication link between the first controller and the MES is in a normal state, the target business data can be sent to the MES. The MES is used to obtain a target station-passing indication based on the target business data, and send the target station-passing indication to the first controller. Thereafter, the first controller can receive the target station-passing indication sent by the MES, and send the target station-passing indication to the target controller. The target controller is used to perform a station-passing control operation for the silk ingot product passing through the target station based on the target station-passing indication. Here, the station-passing control operation can be implemented by a station-passing control device set at the target station corresponding to the target controller; the station-passing control operation is used to control the flow of the silk ingot product passing through the target station and / or whether it passes through the station.
[0146] Step S306, setting the heartbeat result flag (ie, setting HB_OK=1).
[0147] Step S307, setting the heartbeat sending flag (ie, setting HB_SENT=1), and resetting the timing duration of the heartbeat timer (ie, setting HB_TIMER=0).
[0148] Step S308: Identify the detection response information to obtain an identification result of the detection response information.
[0149] The identification of the detection response information may be the identification of the message length of the detection response information to obtain the identification result of the detection response information (ie, the message length).
[0150] Step S309: determine whether the recognition result of the detection response information meets the preset recognition requirement.
[0151] In some optional implementations, when the recognition result of the detection response information is equal to the preset length threshold, it can be determined that the recognition result meets the preset recognition requirement; when the recognition result of the detection response information is not equal to the preset length threshold, it is determined that the recognition result does not meet the preset recognition requirement. The preset length threshold can be set according to actual application requirements, for example, it can be set to 26, and the embodiments of the present disclosure do not limit this.
[0152] In the embodiment of the present disclosure, when the recognition result meets the preset recognition requirement, the process may proceed to step S310 ; when the recognition result does not meet the preset recognition requirement, the process may proceed to step S313 .
[0153] Step S310: Generate a first response record.
[0154] The first response record is used to indicate that the detection response information is a correct response.
[0155] In some optional implementations, “generating a first response record” may include:
[0156] Obtaining a first timestamp recorded by the first controller when receiving the detection response information sent by the MES;
[0157] Update the historical heartbeat count value to obtain the current heartbeat count value;
[0158] Based on the first timestamp and the current heartbeat count value, a first response record is generated.
[0159] The historical heartbeat count values can be obtained in the following ways:
[0160] When the preset heartbeat storage space of the first controller is empty, a first heartbeat count value is randomly generated as a historical heartbeat count value; when the preset heartbeat storage space of the first controller is not empty, a second heartbeat count value stored in the preset heartbeat storage space is used as the historical heartbeat count value.
[0161] In one example, after obtaining the historical heartbeat count value, the historical heartbeat count value can be "+1" operated to obtain the current heartbeat count value, and a first response record is generated based on the first timestamp and the current heartbeat count value. For example, the first response record is composed using the first timestamp and the current heartbeat count value.
[0162] It can be understood that in the embodiment of the present disclosure, when obtaining the first timestamp recorded by the first controller when receiving the detection response information sent by the MES, and updating the historical heartbeat count value to obtain the current heartbeat count value, and generating the first response record based on the first timestamp and the current heartbeat count value, the current heartbeat count value can also be used as a new second heartbeat count value and stored in the preset heartbeat storage space to overwrite the old second heartbeat count value stored in the preset heartbeat storage space with the new second heartbeat count value.
[0163] Step S311, resetting the detection response information (ie, setting HB_RESPONSE_MSG=0).
[0164] Step S312, setting the heartbeat reception flag (ie, setting HB_RECEIVED=1).
[0165] In the embodiment of the present disclosure, after executing step S312, step S319 may be entered.
[0166] Step S313: Generate a second response record.
[0167] The second response record is used to indicate that the detection response information is an error response. Here, the second response record can be identified by error code 3586.
[0168] In some optional implementations, “generating a second response record” may include:
[0169] Obtaining a second timestamp recorded by the first controller when sending the communication detection request to the MES;
[0170] Obtaining a third timestamp recorded by the first controller when receiving the detection response information sent by the MES;
[0171] Based on the second timestamp and the third timestamp, a second response record is generated.
[0172] In one example, the second timestamp and the third timestamp may be used to form a second response record. For example, the second timestamp is used as a starting time point, and the third timestamp is used as an end time point to form a specified time period as the second response record.
[0173] In another example, the second response record may also be generated in the following manner:
[0174] Based on the second timestamp and the third timestamp, obtain the first query time;
[0175] Get the first query content;
[0176] A second response record is generated based on the first query time and the first query content.
[0177] The first query time may be a specified time period starting from the second timestamp and ending at the third timestamp; the first query content may include at least one of the thread calling mechanism of the MES and the performance of the hardware device. Here, the performance of the hardware device may include CPU occupancy, memory occupancy, disk input and output performance, etc.
[0178] In the embodiment of the present disclosure, after executing step S313, step S319 may be entered.
[0179] Step S314, generating an anomaly detection result, and based on the anomaly detection result, updating the historical anomaly number N to obtain the current anomaly number N+1.
[0180] Among them, the abnormal detection result is used to indicate 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 abnormal number N+1 is used to indicate that N+1 abnormal detection results have been generated.
[0181] The historical abnormal number N can be obtained in the following ways:
[0182] When the preset abnormal number storage space of the first controller is empty, the historical abnormal number N is determined to be 0; when the preset abnormal number storage space of the first controller is not empty, the abnormal number value stored in the preset abnormal number storage space is used as the historical abnormal number N.
[0183] In one example, after obtaining the historical number of exceptions N, a "+1" operation may be performed on the historical number of exceptions N to obtain the current number of exceptions N+1.
[0184] It can be understood that in the embodiment of the present disclosure, if the detection response information sent by the MES is not received within the preset waiting time, an abnormality detection result is generated, and based on the abnormality detection result, the historical abnormality number N is updated to obtain the current abnormality number N+1. The current abnormality number N+1 can also be used as a new abnormality number value and stored in the preset abnormality number storage space to use the new abnormality number value to overwrite the old abnormality number value stored in the preset abnormality number storage space.
[0185] Step S315, determining whether the current abnormal number N+1 is greater than or equal to a preset number threshold.
[0186] The preset number threshold may be set according to actual application requirements, for example, it may be set to 3, and the embodiments of the present disclosure do not impose any limitation on this.
[0187] In the embodiment of the present disclosure, when the current number of abnormalities N+1 is less than the preset number threshold, step S316 can be entered; when the current number of abnormalities N+1 is greater than or equal to the preset number threshold, step S317 can be entered.
[0188] Step S316, clear the communication detection request (ie, set HB_REQUEST_MSG="").
[0189] In the embodiment of the present disclosure, after executing step S316, that is, after clearing the communication detection request (that is, setting HB_REQUEST_MSG=""), the process may return to step S302.
[0190] Step S317, resetting the heartbeat result flag (ie, setting HB_OK=0).
[0191] Step S318: Generate a communication exception record.
[0192] Among them, the communication abnormality record can be identified by error code 3306.
[0193] In some optional implementations, “generating a communication abnormality record” may include:
[0194] Obtain N+1 fourth timestamps corresponding one-to-one to the N+1 anomaly detection results;
[0195] Based on the N+1 fourth timestamps, a communication abnormality record is generated.
[0196] In the disclosed embodiment, each of the N+1 abnormal detection results can be used as a target detection result, and the timestamp recorded by the first controller when sending the communication detection request corresponding to the target detection result to the MES is obtained as the fourth timestamp corresponding to the target detection result, thereby obtaining N+1 fourth timestamps corresponding one-to-one to the N+1 abnormal detection results.
[0197] In addition, in one example, a communication anomaly record may be generated based only on the N+1 fourth timestamps. For example, the earliest first standby timestamp and the latest second standby timestamp may be determined from the N+1 fourth timestamps, and a specified time period may be formed with the first standby timestamp as the starting time point and the second standby timestamp as the ending time point as the communication anomaly record.
[0198] In another example, a communication exception record may also be generated in the following manner:
[0199] Based on the N+1 fourth timestamps, obtain a second query time;
[0200] Obtaining the second query content;
[0201] A communication abnormality record is generated based on the second query time and the second query content.
[0202] The second query time can be obtained based on only N+1 fourth timestamps. For example, the earliest third standby timestamp and the latest fourth standby timestamp can be determined from the N+1 fourth timestamps, and the third standby timestamp is used as the starting time point and the fourth standby timestamp is used as the end time point to form a specified time period as the second query time.
[0203] In addition, in the embodiment of the present disclosure, the second query content may include at least one of the message receiving mechanism of the MES, the thread calling mechanism and the hardware device performance. Here, the hardware device performance may include CPU occupancy, memory occupancy, disk input and output performance, etc.
[0204] In addition, it should be noted that in the embodiment of the present disclosure, the execution order of step S317 and step S318 can be replaced, that is, step S317 can be executed first, and then step S318; or step S318 can be executed first, and then step S317. The embodiment of the present disclosure does not limit this.
[0205] Step S319, reset the heartbeat sending flag (ie, set HB_SENT=0), and reset the heartbeat receiving flag (ie, HB_RECEIVED=0).
[0206] In the disclosed embodiment, after executing step S319, that is, after resetting the heartbeat sending flag (that is, setting HB_SENT=0) and resetting the heartbeat receiving flag (that is, HB_RECEIVED=0), the process may return to step S302.
[0207] In order to better implement the above ingot passing station control method, the embodiment of the present disclosure also provides an ingot passing station control device, which is applied to the first controller included in the ingot passing station control system. Figure 4 The structural schematic diagram shown is used to illustrate a spindle passing station control device 400 provided in the disclosed embodiment.
[0208] The ingot passing station control device 400 comprises:
[0209] The service data receiving unit 401 is used to take each second controller among the plurality of second controllers as a target controller and receive target service data sent by the target controller;
[0210] The service data sending unit 402 is used to send the target service data to the MES when it is determined that the communication link between the first controller and the MES is in a normal state; wherein the MES is used to obtain a target station passing indication based on the target service data, and send the target station passing indication to the first controller;
[0211] A stop-over indication receiving unit 403, configured to receive a target stop-over indication sent by the MES;
[0212] The station passing indication sending unit 404 is used to send the target station passing indication to the target controller; wherein the target controller is used to perform the station passing control operation for the silk ingot product passing through the target station corresponding to the target controller based on the target station passing indication.
[0213] In some optional implementations, the service data sending unit 402 is configured to:
[0214] generating a communication detection request;
[0215] Sending a communication detection request to the MES; wherein the MES is used to generate detection response information corresponding to the communication detection request, and send the detection response information to the first controller;
[0216] When the detection response information sent by the MES is received within the preset waiting time, it is determined that the communication link between the first controller and the MES is in a normal state.
[0217] In some optional implementations, the ingot passing station control device 400 further includes a response record generating unit, which is used to:
[0218] When the detection response information sent by the MES is received within the preset waiting time, the detection response information is identified to obtain an identification result of the detection response information;
[0219] When the recognition result meets the preset recognition requirement, a first response record is generated; wherein the first response record is used to indicate that the detection response information is a correct response;
[0220] Alternatively, when the recognition result does not meet the preset recognition requirement, a second response record is generated; wherein the second response record is used to indicate that the detection response information is an erroneous response.
[0221] In some optional implementations, the response record generating unit is used to:
[0222] Obtaining a first timestamp recorded by the first controller when receiving the detection response information sent by the MES;
[0223] Update the historical heartbeat count value to obtain the current heartbeat count value;
[0224] Based on the first timestamp and the current heartbeat count value, a first response record is generated.
[0225] In some optional implementations, the response record generating unit is used to:
[0226] Obtaining a second timestamp recorded by the first controller when sending the communication detection request to the MES;
[0227] Obtaining a third timestamp recorded by the first controller when receiving the detection response information sent by the MES;
[0228] Based on the second timestamp and the third timestamp, a second response record is generated.
[0229] In some optional implementations, the response record generating unit is used to:
[0230] Based on the second timestamp and the third timestamp, obtain the first query time;
[0231] Get the first query content;
[0232] A second response record is generated based on the first query time and the first query content.
[0233] In some optional implementations, the first query content includes at least one of a thread calling mechanism of the MES and hardware device performance.
[0234] In some optional implementations, the ingot passing station control device 400 further includes an abnormality record generating unit, which is used to:
[0235] If the detection response information sent by the MES is not received within the preset waiting time, an abnormal detection result is generated; wherein the abnormal detection result is used to indicate that the communication link between the first controller and the MES is in an abnormal state;
[0236] Based on the anomaly detection result, the historical anomaly number N is updated to obtain the current anomaly number N+1; wherein N≥0 and is an integer, and the current anomaly number N+1 is used to indicate that N+1 anomaly detection results have been generated;
[0237] When the current abnormal number N+1 is greater than or equal to the preset number threshold, a communication abnormality record is generated.
[0238] In some optional implementations, the exception record generating unit is used to:
[0239] Obtain N+1 fourth timestamps corresponding one-to-one to the N+1 anomaly detection results;
[0240] Based on the N+1 fourth timestamps, a communication abnormality record is generated.
[0241] In some optional implementations, the exception record generating unit is used to:
[0242] Based on the N+1 fourth timestamps, obtain a second query time;
[0243] Obtaining the second query content;
[0244] A communication abnormality record is generated based on the second query time and the second query content.
[0245] In some optional implementations, the second query content includes at least one of a message receiving mechanism, a thread calling mechanism, and hardware device performance of the MES.
[0246] The specific functions and examples of each unit in the ingot passing station control device 400 provided in the embodiment of the present disclosure can be described by referring to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.
[0247] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0248] Figure 5 FIG. 1 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Figure 5 As shown, the electronic device includes: a memory 501 and a processor 502, and the memory 501 stores a computer program that can be run on the processor 502. The number of memories 501 and processors 502 can be one or more. The memory 501 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 by the above method embodiment. The electronic device may also include: a communication interface 503, which is used to communicate with external devices and perform data exchange transmission.
[0249] If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the memory 501, the processor 502 and the communication interface 503 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0250] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface.
[0251] It should be understood that the processor may be a CPU, or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) 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 supporting the Advanced RISC Machines (ARM) architecture.
[0252] 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 read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (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 dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DR RAM).
[0253] 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 process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. 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 a website site, computer, server or data center by wired (for example: coaxial cable, optical fiber, data subscriber line (Digital Subscriber Line, DSL)) or wireless (for example: infrared, Bluetooth, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc. It is worth noting that the computer-readable storage medium mentioned in the present disclosure may be a non-volatile storage medium, in other words, a non-transient storage medium.
[0254] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0255] In the description of the embodiments of the present disclosure, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction 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 may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0256] In the description of the embodiments of the present disclosure, unless otherwise specified, " / " means or, for example, A / B can mean A or B. "And / or" in this article is only a way to describe the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0257] In the description of the embodiments of the present disclosure, the terms "first", "second", and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", and "third" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "multiple" means two or more.
[0258] The above description is only an exemplary embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for controlling a wire ingot passing station, applied to a first controller included in a wire ingot passing station control system, wherein the wire ingot passing station control system further includes a manufacturing execution system and a plurality of second controllers communicating with the first controller; wherein: Each of the plurality of second controllers has a corresponding ingot station, so as to obtain business data related to the ingot station and perform a station control operation for the ingot product passing through the ingot station; The method comprises: Taking each second controller among the plurality of second controllers as a target controller, and receiving target service data sent by the target controller; When 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; wherein the manufacturing execution system is used to obtain a target stop-over indication based on the target business data, and send the target stop-over indication to the first controller; receiving the target transit indication sent by the manufacturing execution system; The target station passing indication is sent to the target controller; wherein the target controller is used to perform a station passing control operation for the silk ingot product passing through the target station corresponding to the target controller based on the target station passing indication.
2. The method according to claim 1, wherein: The determining that the communication link between the first controller and the manufacturing execution system is in a normal state includes: generating a communication detection request; Sending the communication detection request to the manufacturing execution system; wherein the manufacturing execution system is used to generate detection response information corresponding to the communication detection request, and send the detection response information to the first controller; When the detection response information sent by the manufacturing execution system is received within the preset waiting time, it is determined that the communication link between the first controller and the manufacturing execution system is in a normal state.
3. The method according to claim 2, further comprising: When the detection response information sent by the manufacturing execution system is received within a preset waiting time, identifying the detection response information to obtain an identification result of the detection response information; If the recognition result meets the preset recognition requirement, a first response record is generated; wherein the first response record is used to indicate that the detection response information is a correct response; Alternatively, when the identification result does not meet the preset identification requirement, a second response record is generated; wherein the second response record is used to indicate that the detection response information is an error response.
4. The method according to claim 3, wherein: The generating of the first response record comprises: Acquire a first timestamp recorded by the first controller when receiving the detection response information sent by the manufacturing execution system; Update the historical heartbeat count value to obtain the current heartbeat count value; A first response record is generated based on the first timestamp and the current heartbeat count value.
5. The method according to claim 3, wherein: The generating of the second response record comprises: acquiring a second timestamp recorded by the first controller when sending the communication detection request to the manufacturing execution system; Acquire a third timestamp recorded by the first controller when receiving the detection response information sent by the manufacturing execution system; Based on the second timestamp and the third timestamp, the second response record is generated.
6. The method according to claim 5, wherein: The generating the second response record comprises: Based on the second timestamp and the third timestamp, obtaining a first query time; Get the first query content; The second response record is generated based on the first query time and the first query content.
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 a performance of a hardware device.
8. The method according to claim 2, further comprising: If the detection response information sent by the manufacturing execution system is not received within the preset waiting time, an abnormal detection result is generated; wherein the abnormal detection result is used to indicate that the communication link between the first controller and the manufacturing execution system is in an abnormal state; Based on the anomaly detection result, the historical anomaly number N is updated to obtain the current anomaly number N+1; wherein N≥0 and is an integer, and the current anomaly number N+1 is used to indicate that N+1 anomaly detection results have been generated; When the current abnormal number N+1 is greater than or equal to the preset number threshold, a communication abnormality record is generated.
9. The method according to claim 8, wherein: The generating of the communication abnormality record comprises: Obtaining N+1 fourth timestamps corresponding one-to-one to the N+1 abnormality detection results; Based on the N+1 fourth timestamps, the communication exception record is generated.
10. The method according to claim 9, wherein: The generating the communication abnormality record based on the N+1 fourth timestamps includes: Based on the N+1 fourth timestamps, obtaining a second query time; Obtaining the second query content; The communication abnormality record is generated based on the second query time and the second query content.
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 the manufacturing execution system.
12. A wire ingot station control device, applied to a first controller included in a wire ingot station control system, wherein the wire ingot station control system further includes a manufacturing execution system and a plurality of second controllers communicating with the first controller; wherein: Each of the plurality of second controllers has a corresponding ingot station, so as to obtain business data related to the ingot station and perform a station control operation for the ingot product passing through the ingot station; The device comprises: a service data receiving unit, configured to take each of the plurality of second controllers as a target controller and receive target service data sent by the target controller; a service data sending unit, configured to send the target service data to the manufacturing execution system when it is determined that the communication link between the first controller and the manufacturing execution system is in a normal state; wherein the manufacturing execution system is configured to obtain a target stop-over indication based on the target service data, and send the target stop-over indication to the first controller; a stop-over indication receiving unit, configured to receive the target stop-over indication sent by the manufacturing execution system; A station passing indication sending unit is used to send the target station passing indication to the target controller; wherein the target controller is used to perform a station passing control operation for the silk ingot product passing through the target workstation corresponding to the target controller based on the target station passing indication.
13. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; 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 any one of claims 1 to 11.
14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 11.