Operation guidance method and device, equipment and storage medium
Through real-time communication and data processing between the MES, the first PLC and the second PLC, the display equipment provides technical guidance to the staff, solving the problem of low efficiency in handling abnormal situations in the production process, reducing the probability of accidents, and improving the Productivity.
Patent Information
- Application Number
- CN202411370342.2
- 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
During the production process, abnormal situations may occur in the workstation and technicians are not enough to handle them alone, the traditional technical guidance manual cannot solve the problem in a timely manner, resulting in production accidents or reduced production efficiency.
Through real-time communication and data processing between the MES, the first PLC and the second PLC, the display equipment is used to provide technical guidance to staff, reduce the probability of accidents and improve production efficiency.
Through real-time communication and data processing, instant technical guidance is provided, which reduces the process of manual judgment, improves efficiency and accuracy, reduces the probability of accidents, and improves production efficiency.
Smart Images

Figure CN119270754A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of automatic control technology, and in particular to the field of intelligent manufacturing. Background Art
[0002] During the production process, some abnormal situations may occur at the workstation. When the technicians are not able to handle the abnormal situations alone, they need to be given technical guidance. If the traditional technical guidance manual is used, if the problem cannot be found and solved in time when an emergency occurs, it is easy to cause production accidents or reduce production efficiency. Summary of the invention
[0003] The present disclosure provides an operation guidance method, device, equipment and storage medium to solve or alleviate one or more technical problems in the prior art.
[0004] In a first aspect, the present disclosure provides a work guidance method, comprising:
[0005] The first PLC obtains a first operation instruction request from the second PLC; wherein the first operation instruction request includes an operation instruction identifier requested by the target workstation;
[0006] The first PLC sends a second operation instruction request to the MES according to the first operation instruction request; wherein the second operation instruction request includes the operation instruction identifier;
[0007] The first PLC receives the operation instruction response sent back by the MES according to the operation instruction identifier, where the operation instruction response includes operation instruction type information;
[0008] The first PLC sends the operation instruction type information to the host computer, and the host computer searches for operation instruction content according to the operation instruction type information and sends it to the display device connected to the target workstation.
[0009] In a second aspect, the present disclosure provides a work guidance device, comprising:
[0010] The first transceiver module 710 is used to obtain a first operation instruction request from the second PLC; wherein the first operation instruction request includes an operation instruction identifier requested by the target workstation;
[0011] The second transceiver module 720 is used to send a second operation instruction request to the MES according to the first operation instruction request; wherein the second operation instruction request includes the operation instruction identifier; and receive an operation instruction response sent back by the MES according to the operation instruction identifier, wherein the operation instruction response includes operation instruction type information;
[0012] The third transceiver module 730 is used to send the operation instruction type information to the host computer, search the operation instruction content in the host computer according to the operation instruction type information and send it to the display device connected to the target workstation.
[0013] In a third aspect, an electronic device is provided, including:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] 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.
[0017] In a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute any method according to the embodiments of the present disclosure.
[0018] In a fifth aspect, a computer program product is provided, comprising a computer program, which implements any method according to the embodiments of the present disclosure when executed by a processor.
[0019] The technical solution provided by the present disclosure can reduce the probability of accidents and improve production efficiency through real-time communication and data processing between MES, the first PLC and the second PLC, and providing technical guidance to workers through a display device.
[0020] 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
[0021] 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.
[0022] Figure 1 It is a schematic flowchart of an operation guidance method according to an embodiment of the present disclosure.
[0023] Figure 2 It is a structural diagram of the operation guidance control system.
[0024] Figure 3 It is a schematic flowchart of an operation guidance method according to another embodiment of the present disclosure.
[0025] Figure 4 It is a schematic flowchart of an operation guidance method according to another embodiment of the present disclosure.
[0026] Figure 5 It is a schematic flowchart of an operation guidance method according to another embodiment of the present disclosure.
[0027] Figure 6a , Figure 6b , Figure 6c and Figure 6d It is a processing flow diagram of a work instruction.
[0028] Figure 7 It is a schematic block diagram of an operation guidance device according to an embodiment of the present disclosure.
[0029] Figure 8 is a schematic block diagram of a work instruction device according to another embodiment of the present disclosure.
[0030] Fig. 9 It is a block diagram of an electronic device used to implement the operation guidance method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] 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.
[0032] 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.
[0033] Before introducing the technical solutions of the embodiments of the present disclosure, the technical terms that may be used in the present disclosure are further explained:
[0034] Manufacturing Execution System (MES): A software system used to monitor and manage the manufacturing process, which can collect, process and analyze production data in real time to optimize production planning and resource allocation.
[0035] Programmable Logic Controller (PLC): An industrial digital computer used to control automated equipment, such as mechanical devices and robots on production lines. It can perform logical operations and processing on input signals according to preset programs, and output control signals to control the operation of the equipment.
[0036] Host computer: A computer system used to control or monitor other host computers or other terminal devices, corresponding to the lower computer (such as a PLC controller).
[0037] Business data: business-related data generated during the manufacturing process, such as equipment status, product quantity, production progress, etc. These data are the basis for MES and PLC to make decisions and control.
[0038] In the scheme of the embodiment of the present disclosure, the workstation can produce or convey products. There can be many types of products. For example, spindles, paper tubes, etc. Among them, the main types of chemical fibers may include one or more of pre-oriented yarns (Partially Oriented Yarns, POY), fully drawn yarns (Fully Drawn Yarns, FDY), drawn textured yarns (Draw Textured Yarns, DTY) (or low-elastic yarns), etc. For example, the types of chemical fibers may specifically include polyester pre-oriented yarns (Polyester Partially Oriented Yarns), polyester fully drawn yarns (Polyester Fully Drawn Yarns), polyester drawn yarns (Polyester Drawn Yarns), polyester low-elastic yarns (Polyester Draw Textured Yarns), polyester staple fibers (Polyester Staple Fiber, PSF), fiber-grade polycaprolactam chips (Polyamide 6 chips fibergrade, PA6), etc.
[0039] Figure 1 is a schematic flow chart of a work guidance method according to an embodiment of the present disclosure. The method is applied to a production control system, see Figure 2The control system may include a host computer 201, a manufacturing execution system (MES) 202, a first programmable logic controller (PLC) 203, a second PLC 204, a workstation 205, and a display device 206. The host computer 201 is connected to the first PLC 203 and the display device 206, respectively. The first PLC 203 is connected to the MES 202 and one or more second PLCs 204. The second PLC 204 is connected to one or more workstations 205. The display device is connected to one or more workstations 205. A production device may include one or more workstations.
[0040] In one embodiment, the operation guidance method may include:
[0041] S110, the first PLC obtains a first operation instruction request from the second PLC; wherein the first operation instruction request includes an operation instruction identifier requested by the target workstation;
[0042] S120, the first PLC sends a second operation instruction request to the MES according to the first operation instruction request; wherein the second operation instruction request includes the operation instruction identifier;
[0043] S130, the first PLC receives the operation instruction response sent back by the MES according to the operation instruction identifier, where the operation instruction response includes operation instruction type information;
[0044] S140, the first PLC sends the operation instruction type information to the host computer, searches the operation instruction content in the host computer according to the operation instruction type information and sends it to the display device connected to the target workstation.
[0045] In the disclosed embodiment, the first operation instruction request is collected and processed by the first PLC. The first PLC operation instruction request may include a request automatically sent by the target workstation to the second PLC or a request actively sent to the second PLC by the staff operating the target workstation through operations such as buttons or screens. The second PLC collects the request and sends it to the first PLC. The first operation instruction request may also include an operation instruction identifier requested by the target workstation. The first PLC may also be referred to as an IT PLC, and the second PLC may also be referred to as an ME PLC. The target workstation and the display device may be devices integrated into the same physical device, or may be two separate independent devices.
[0046] In the embodiment of the present disclosure, after receiving the first operation instruction request, the first PLC can first verify whether the format of the first operation instruction request is correct. After the verification is correct, it can process the second operation instruction request according to the first operation instruction request and send the second operation instruction request to the MES system.
[0047] In the disclosed embodiment, MES is used to monitor the status of each workstation in real time. MES parses the work instruction identifier in the second work instruction request sent by the first PLC, and obtains the work instruction type of the target workstation that needs work instruction according to the parsing result. The work instruction type of the target workstation may include some abnormal conditions or emergencies in the production process, such as the handling of entanglement of the silk ingot, the handling of the silk car failing to pass the station normally, the handling of unexpected situations in the workshop, and the handling of staff fainting. After obtaining the work instruction type, MES returns the work instruction content to the first PLC accordingly.
[0048] In the disclosed embodiment, the first PLC receives the operation instruction response sent by the MES and obtains the operation instruction type information therein and sends it to the host computer. After the host computer receives the operation instruction type sent by the first PLC, it searches the database for the corresponding operation instruction content according to the operation instruction type information. For example, if the operation instruction type is that the ingot is entangled, and the processing method is to cut off the waste silk through searching in the database, the host computer can download the video or picture process of how to cut off the waste silk, and send it to the display device connected to the target station to provide operation instructions.
[0049] According to the embodiment of the present disclosure, through real-time communication and data processing between MES, the first PLC and the second PLC, and by providing technical guidance to workers through a display device, the probability of accidents can be reduced and production efficiency can be improved.
[0050] In one embodiment, the operation instruction identifier includes a service identifier written by the workstation into the second PLC that requires requesting operation instructions.
[0051] In the disclosed embodiment, the scanning cycle of the first PLC can be set; for example, scanning once every 2 seconds and once every 5 seconds, and the identification of the second PLC is obtained according to the set cycle. The identification can be an operation instruction identification or other work identification. The operation instruction identification includes a business identification, which is used to indicate the data exchange between the workstation and the second PLC, and can include the code of the target workstation, the IP address of the display device corresponding to the target workstation, and the IP address of the target workstation.
[0052] In the disclosed embodiment, the first PLC obtains the operation instruction identifier and determines whether instruction is required. If operation instruction is required, the first PLC obtains the first operation instruction request sent by the target workstation to the second PLC from the second PLC.
[0053] According to the embodiment of the present disclosure, whether operation guidance is needed is determined by obtaining the operation guidance mark, which reduces the process of manual judgment and improves efficiency and accuracy.
[0054] In one embodiment, the method further comprises:
[0055] When one or more of the following conditions are met, the operation guidance function of the first PLC is enabled:
[0056] The first PLC starts the online mode;
[0057] The type of request received was assignment instructions;
[0058] This workstation requires work instructions;
[0059] The first PLC is successfully connected to the MES and the host computer respectively.
[0060] In the disclosed embodiment, the working mode of the first PLC can be checked when the first PLC starts working or before preparing for operation guidance. It is determined whether the online mode of the first PLC is started. If it is in an offline mode, the first PLC can be adjusted to an online mode. For example, the first PLC can check the value of the parameter IT-PLC ONLINE used to represent the working mode of the first PLC. If IT-PLC ONLINE = 1, it can be determined that the online mode of the first PLC is started, and the operation guidance function of the first PLC can be turned on. If IT-PLC ONLINE = 0, it can be determined that the first PLC is in an offline mode, and the operation guidance function can be turned off first, and it can be turned on after the first PLC is adjusted to the online mode.
[0061] In the disclosed embodiment, the first PLC may determine whether the type of the received request is a type of request for operation guidance. If so, the operation guidance function of the first PLC may be enabled. Otherwise, the function is not enabled. For example, the first PLC may check the value of the parameter REQUEST_TYPE used to indicate the request type. If REQUEST_TYPE=WI, and WI is an operation guidance type, the received request is an operation guidance type.
[0062] In the disclosed embodiment, the first PLC can determine whether the work station requires operation guidance. If no operation guidance is required, the first PLC may not enable the operation guidance function first. For example, confirm whether the connectivity between the first PLC and MES, and the first PLC and the host computer are separately connected. If the connectivity between the first PLC and MES, and the first PLC and the host computer are not separately connected, the first PLC, the host computer, and the first PLC and MES can be connected.
[0063] According to the embodiment of the present disclosure, confirming the working mode of the first PLC can ensure the normal operation of the equipment, reduce the process of manual inspection of the equipment, and improve efficiency and accuracy.
[0064] In one embodiment, the method further comprises:
[0065] When one or more of the following conditions are met, the operation guidance function of the second PLC is enabled:
[0066] The second PLC starts the online mode;
[0067] The second PLC starts the automatic mode;
[0068] The type of request received was assignment instructions;
[0069] The request received was correctly formatted.
[0070] In the disclosed embodiment, when the second PLC starts working or before preparing to provide operation guidance, the second PLC can determine its own working status, which may include the online mode status, automatic mode status and operation guidance type of the second PLC. The first PLC can also be used to determine the working status of the second PLC, for example, the first PLC receives the working status information sent by the second PLC. The first PLC determines whether the online mode of the second PLC is turned on through the working status information. If the second PLC does not turn on the online mode, the second PLC can be adjusted to the online mode. For another example, confirm whether the second PLC is in automatic mode. If the second PLC does not turn on automatic mode, the second PLC can be adjusted to automatic mode; for another example, confirm that the type of request received by the second PLC from the workstation is operation guidance. If the type of request received by the second PLC from the workstation is not operation guidance, the second PLC does not turn on the operation guidance function. For another example, when the first PLC obtains the operation instruction request from the second PLC, the second PLC can confirm the format of the operation instruction request. After the second PLC confirms that it is correct, it sends the operation instruction request to the first PLC. If the second PLC confirms that there is an error in the instruction, it calls the function computing (FC) module to write the error code 3543. The error code can be obtained by querying the error code table. Different error codes represent different error types. The error code table can be pre-set and stored in the first PLC, the second PLC or the storage space readable by the PLC.
[0071] According to the embodiment of the present disclosure, confirming the working status of the second PLC can ensure the normal operation of the equipment, reduce the process of manual inspection of the equipment, and improve efficiency and accuracy.
[0072] Figure 3 is a schematic flow chart of a work instruction method according to another embodiment of the present disclosure. The method may include one or more features of the above method. In one embodiment, step S120, the first PLC sends a second work instruction request to the MES according to the first work instruction request, including:
[0073] S310, the first PLC constructs the second operation instruction request according to the first operation instruction request; wherein the second operation instruction request includes the business instruction identifier and target workstation information carried by the first operation instruction request;
[0074] S320: When the second operation instruction request is correct, the first PLC sends the second operation instruction request to the MES.
[0075] In an embodiment of the present disclosure, after the first PLC receives the first operation instruction request sent by the second PLC, a confirmation signal can be sent to the second PLC. The first PLC can parse the first operation instruction request and reconstruct the second operation instruction request. The second operation instruction request may include the business guidance identifier, target workstation information, etc. carried by the first operation instruction request, and the format of the second operation instruction request can be unified into a format that can be processed by MES. If the first operation instruction request has a large format difference due to coming from different devices, it can be uniformly adjusted through the second operation instruction request. If the format of the first operation instruction request is unified, it can also be forwarded directly as the second operation instruction request without adjustment. In addition, the first PLC can also send a signal instructing MES to reset after receiving the second operation instruction request.
[0076] In the disclosed embodiment, the first PLC determines whether the constructed second operation instruction request is correct. If the second operation instruction request is correct, the request is placed in the sending data block (Data Block, DB) of the first PLC. When sending the DB to the MES, the information in the second operation instruction request can be brought to the MES.
[0077] In one embodiment, the method further comprises:
[0078] S330. When the second operation instruction request is erroneous, the first PLC sends a first write instruction to the second PLC. The first write instruction includes a first error code, and the first error code is used to indicate that the second operation instruction request is erroneous.
[0079] In the disclosed embodiment, if the second instruction request is incorrect, a function module may be called to construct a first write instruction including a first error code. The first PLC may first determine whether the first write instruction is correct. The correct first write instruction is sent to the second PLC, and a first error code indicating an error in the second operation instruction request may be sent to the second PLC.
[0080] According to the embodiment of the present disclosure, the first PLC constructs the second operation instruction request to confirm that it is correct and sends it to the MES, which can reduce the occurrence of mis-sending, missing, and wrong signal transmission between devices and improve work efficiency and accuracy.
[0081] In one embodiment, the method further comprises:
[0082] In the case that the first write instruction is erroneous, the first PLC sends a second write instruction to the second PLC, the second write instruction includes a second error code, and the second error code is used to indicate that the first write instruction is erroneous.
[0083] In the embodiment of the present disclosure, after the first PLC determines that the first write instruction is incorrect, it can call the function module to construct a second write instruction including a second error code, and send the second write instruction to the second PLC.
[0084] In the embodiment of the present disclosure, after the first PLC sends the second operation instruction request to the MES, the sending data block of the first PLC may be reset, and the reset includes initializing the content in the sending data block.
[0085] According to the embodiment of the present disclosure, the first PLC constructs the second operation instruction request to confirm that it is correct and sends it to the MES, which can reduce the occurrence of mis-sending, missing, and wrong signal sending between devices, and improve work efficiency and accuracy.
[0086] Figure 4 is a schematic flow chart of a work instruction method according to another embodiment of the present disclosure. The method may include one or more features of the above method. In one embodiment, step S130, the first PLC receives the work instruction type information transmitted back by the MES according to the work instruction identifier, including:
[0087] S410, the first PLC receives the operation instruction response sent back by the MES, the operation instruction response includes the operation instruction type information and a first response string variable; wherein the operation instruction type information includes the operation type that needs to be instructed at the workstation; wherein the first response string variable is one or more of the type, number, and associated display device information of the target workstation obtained by the MES according to the analysis of the target workstation information;
[0088] S420: If the format of the first response string variable is correct, the first PLC parses the first response string variable;
[0089] S430, the first PLC performs format conversion on the first response string variable to obtain a second response string variable;
[0090] S440: The first PLC sends the operation instruction type information and the second response string variable to the host computer.
[0091] In the disclosed embodiment, if the MES receives the second operation instruction request sent by the first PLC, the MES may return an operation instruction response to the first PLC. The operation instruction response may include operation instruction type information and a first response string variable. The operation instruction type information may be the type of operation that needs to be instructed at the workstation. The first response string variable may include the workstation corresponding to the operation instruction response, the display device associated with the workstation, and the operation instruction method, etc., which are string variables that can be recognized by computer languages. If the MES does not receive the second operation instruction request sent by the first PLC, the MES may return an empty or erroneous operation instruction type response to the first PLC, and the first PLC may resend the second operation instruction request.
[0092] In the disclosed embodiment, after the first PLC receives the non-empty work instruction type information from the MES, it can send a confirmation signal to the MES. The first PLC constructs a second response string variable based on the parsed first response string variable and performs format conversion on the first response string variable. The variable information contained in the second response string variable can be the same as the original first response string variable, corresponding to the work instruction returned by the MES, and the character format of the second response string variable can be a character format that can be received and processed by the upper computer. The first PLC sends the work instruction type information and the second response string variable to the upper computer.
[0093] According to the embodiment of the present disclosure, by parsing and formatting the first response string variable to construct a second string variable, the stability of information interaction can be improved and the adaptability of information between different devices can be improved.
[0094] Figure 5 is a schematic flow chart of a work guidance method according to another embodiment of the present disclosure. The method may include one or more features of the above method. In one embodiment, the method further includes:
[0095] S510: When the first response string variable is erroneous, the first PLC sends a third write instruction to the second PLC, where the third write instruction includes a third error code, and the third error code is used to indicate that the first response string variable is erroneous.
[0096] S520: When the third write instruction of the first PLC is erroneous, the first PLC sends a fourth write instruction to the second PLC, where the fourth write instruction includes a fourth error code, and the fourth error code is used to indicate that the third write instruction is erroneous.
[0097] In the disclosed embodiment, the first PLC can determine whether the format of the first response string variable is correct. If the first response string variable is correct, the first response string variable is parsed; if the format of the first response string variable is incorrect, the function module is called to construct a third write instruction including a third error code. After the first PLC determines that the third write instruction is correct, the third write instruction can be sent to the second PLC. After the first PLC determines that the third write instruction is incorrect, the function module can be called to construct a fourth write instruction including a fourth error code, and then the fourth write instruction can be sent to the second PLC.
[0098] In the disclosed embodiment, the first PLC may also determine whether the format of the first response string variable contains an error code (Error Code, EC). If the first response string variable contains EC, the receive data block of the first PLC is reset. If the format of the first response string variable is incorrect, the function module is called to construct a third write instruction including a third error code. After the first PLC determines that the third write instruction is correct, the third write instruction may be sent to the second PLC. After the first PLC determines that the third write instruction is incorrect, the function module may be called to construct a fourth write instruction including a fourth error code, and then the fourth write instruction may be sent to the second PLC.
[0099] According to the embodiment of the present disclosure, by performing format, EC and other checks on the first response string variable, the stability of the interaction between devices can be improved and the probability of errors in information transmission between devices can be reduced.
[0100] In one embodiment, searching the operation instruction content in the host computer according to the operation instruction type information and sending it to the display device connected to the target workstation includes:
[0101] In the host computer, according to the operation instruction type information, the corresponding operation instruction content is searched in the operation instruction database;
[0102] The host computer sends the work instruction content to the display device connected to the target workstation according to one or more of the type, number, and associated display device information of the target workstation.
[0103] In the disclosed embodiment, the host computer may be a Supervisory Control And Data Acquisition (SCADA) system. After receiving the operation instruction type information and the second response string variable, the host computer may obtain the corresponding operation instruction content from the database according to the corresponding instruction type and instruction method. Then, the operation instruction content may be sent to the display device associated with the workstation that requires operation instruction for guidance. For example, if the instruction type is to instruct on the barcode reading of the wire loom, and the instruction method is video instruction, the host computer may select a video containing the barcode reading of the wire loom from the database and send it to the display device, or the host computer may select multiple videos containing the barcode reading of the wire loom from the database and send them to the display device for selection by the staff.
[0104] In one way, the host computer can find the number, address and other information of the display device associated with the target workstation according to the type, number and other information of the target workstation obtained from the string variable, and send the work instruction content to the display device according to the information of the display device. In another way, the host computer can send the work instruction content to the display device according to the number, address and other information of the display device associated with the target workstation obtained from the string variable.
[0105] According to the embodiments of the present disclosure, by using a host computer to select corresponding guidance content according to the guidance type, operation guidance can be carried out in a more specific and vivid manner, thereby improving the quality of operation guidance and optimizing the operation guidance process.
[0106] In one embodiment, the method further comprises:
[0107] The first PLC receives the operation instruction completion information sent back by the host computer;
[0108] The first PLC performs a reset operation when the format of the operation instruction completion information is correct.
[0109] In the disclosed embodiment, the host computer can send the work instruction completion information to the first PLC after sending the instruction content to the display device. The host computer can also send the instruction completion information back to the first PLC after the display device finishes playing the data sent by the host computer or the staff at the target workstation actively ends the playback. The first PLC receives and confirms whether the format of the instruction completion information is correct. If the instruction completion information is correct, the first PLC is reset.
[0110] According to the embodiment of the present disclosure, the first PLC is used to confirm whether the guidance completion information sent back by the host computer is correct, so that the progress of the guidance process can be accurately obtained, the operation guidance efficiency is improved, and the operation guidance process is optimized.
[0111] In one embodiment, the reset operation includes one or more of the following:
[0112] Clear and reset the control bit corresponding to the first PLC;
[0113] Reset the MES data area;
[0114] Reset the host computer data area.
[0115] In the disclosed embodiment, when the operation instruction is finished, the first PLC can call the function FC module to clear and reset the control bits, MES system and host computer corresponding to the first PLC.
[0116] According to the embodiments of the present disclosure, the device is cleared and reset through the function module to prepare for the next operation guidance, which can avoid data errors and improve the accuracy of operation guidance.
[0117] Figure 6a It is a schematic diagram of the processing flow of the work instruction. Taking the first PLC as the information technology (IT) PLC and the second PLC as the structural engineering (ME) PLC as an example, the process includes:
[0118] S601: System startup;
[0119] S602,
[0120] IT PLC periodically obtains ME_MSG.ME_SILK_MSG.REQUEST_TYPE (TYPE is the business data type written by ME PLC) and ME_MSG.ME_CTRL_WRD.STATION_READY (ME PLC confirms product arrival)
[0121] When one or more of the following conditions are met, the IT PLC can start the work instruction function (or start the work instruction):
[0122] IT-PLC ONLINE=1; (IT PLC online status is 1);
[0123] STATION_CFG.WI=1; (activate the work instruction, CFG.WI status is 1);
[0124] IT_MSG.UDT_IT_MSG_1.IT_CTRL_WRD.WITH_PLC=1; (IT PLC online mode status is 1); (The conditions for implementing the online process must be met at the same time: IT-PLC runs in "online" mode; STATION_CFG.TR=1; WITH_PLC=1; AUTO_MODE=1. Here, WITH_PLC=1 means that the IT-PLC online / offline knob is turned to the online position).
[0125] ME_MSG.ME_SILK_MSG.REQUEST_TYPE=WI (the response type is Working Instruction (WI) type).
[0126] S603. Determine whether DB6101.ME_MSG.ME_CTRL_WRD.AUTO_MODE = 1. If it is 1, execute step S604; if not, execute step S603 again.
[0127] The instruction ME_MSG.ME_CTRL_WRD.AUTO_MODE indicates the ME-PLC automatic mode, and DB6101 indicates the target data block storing the above instruction.
[0128] S604, write log & initialize operation.
[0129] S605. Determine whether ME_MSG.ME_CTRL_WRD.WI_REQUEST_SENT is 1 (an example of determining whether work guidance is required). If it is 1, execute step S606; if not, repeat step S605.
[0130] S606. IT-PLC obtains ME_MSG.ME_SILK_MSG FROMME-PLC (ie, obtains the first operation instruction request from ME-PLC) through a GET instruction.
[0131] S607, determine whether the error indication (ERROR) in the GET instruction of step S606 is equal to 0, and whether the status indication (STATUS) is equal to 0000H. If the GET instruction is not 0, execute step S608; if the GET instruction is 0, execute step S609.
[0132] Here, ERROR = 0 means that there is no error in the GET instruction. STATUS = 0000H means that the status value = 0, and H represents hexadecimal. The GET instruction is an instruction for IT-PLC to obtain data from ME-PLC.
[0133] S608. If the condition in S607 is not 0, call FB64001 (write error code 3543, indicating that the first operation instruction request is wrong), and re-execute step S606. Different error codes can represent different error types. Here, FB represents an integrated module with a function of writing error codes. FB64001 is a function module number, which can be used to write different error codes.
[0134] S609. If the condition in step S607 is 0, the IT-PLC sets IT_CTRL_WRD.STATION_READY_RECEIVED.
[0135] S610. IT-PLC constructs SILK_REQUEST (second business guidance request) (MES resets after receiving the data) (the condition that SILK_REQUEST is empty can be added).
[0136] S611, determine whether the structure is wrong, if the structure is wrong, execute step S612 (see Figure 6b ), if the construction is correct, execute step S616.
[0137] S612. If an error occurs in the construction, an error code 3544 is written to IT_RES_1 (the function module numbered FC64002 in the IT PLC writes the error code to IT_RES_1, FC64002 is a function module for writing error codes, and IT_RES_1 is a custom data structure).
[0138] S613. Send IT_RES_1 to ME-PLC via an output (PUT) instruction (first write instruction).
[0139] S614. Determine whether the ERROR in the PUT instruction is 0. If the instruction is not 0, execute step S615. If the instruction is 0, execute step S635.
[0140] S615. If the ERROR in the PUT instruction is not 0 (the instruction is wrong), call FB64001 (write error code 3563, that is, construct a second write instruction), and then return to step S612.
[0141] S616. If there is no error in the construction, the IT-PLC sends the constructed business guidance request information to the MES and sets RR_SENT.
[0142] S617. Determine whether SILK_RESPONSE (the response string sent by MES to IT_PLC. Here, MI_RESPONSE.SILK_RESPONSE1 represents the response string sent by MES to IT-PLC (the first string variable). DB6101.MI_RESPONSE.SILK_RESPONSE1 is a variable in the DB block allocated by IT-PLC to the workstation numbered 6101 and used to store the response string sent by MES to IT-PLC) is not empty? If it is empty, execute step S617 to re-judge; if it is not empty, execute step S618.
[0143] S618. If SILK_RESPONSE (the response string sent by MES to IT PLC) is not empty, IT-PLC parses SILK_RESPONSE (the response string sent by MES to IT PLC).
[0144] S619: Determine whether the SILK_RESPONSE format is correct. If not, proceed to step S620 (see Figure 6c ), if correct, execute step S624. (For example, IT-PLC extracts the first three digits and the last three digits in the string MI_RESPONSE.SILK_RESPONSE1 (first string variable), and converts the first three digits into the target integer type (second string variable)).
[0145] (Here, the type name of the target integer type is "int". It should be noted that adding format check is a secondary check to ensure that the format of the response string returned by MES is correct).
[0146] S620. If the format of SILK_RESPONSE is incorrect, call FB64001 (ie, construct the third write instruction) and then write the error code 1509 to IT_RES_1.
[0147] S621. Send IT_RES_1 to ME-PLC via the output (PUT) instruction (the third write instruction).
[0148] S622. Determine whether the ERROR in the PUT instruction is equal to 0. If not, execute step S623; if equal, execute step S635.
[0149] S623. If the ERROR in the PUT instruction is not 0, call FB64001 (write error code 3566, ie construct the fourth write instruction), and then execute step S620.
[0150] S624, determine whether SILK_RESPONSE contains EC, if not, execute step S625 (see Figure 6d ), if EC is included, execute step S629.
[0151] S625. If EC is not contained, FB64001 is called (ie, the third write instruction is constructed) and then the error code 1509 is written to IT_RES_1.
[0152] S626. Send IT_RES_1 to ME-PLC via the output (PUT) instruction (the third write instruction).
[0153] S627. Determine whether the ERROR in the PUT instruction is equal to 0. If the instruction is not 0, execute step S628. If the instruction is 0, execute step S635.
[0154] S628. If the ERROR in the PUT instruction is not 0 (the instruction is wrong), call FB64001 (write error code 3566, that is, construct the fourth write instruction) and then execute step S625.
[0155] S629: Determine the type of operation instruction, for example, the type of operation instruction is that instruction is required.
[0156] S630: If SILK_RESPONSE contains EC, the IT-PLC sends the operation instruction type information and the second response string to the host computer and sets RS_RECEIVED.
[0157] S631, the host computer returns the operation instruction completion information to the IT PLC.
[0158] S632, IT-PLC clears and resets the response sent back by the host computer, such as SILK_RESPONSE.
[0159] S633, IT-PLC outputs (PUT) IT_RES_1 to ME PLC.
[0160] S634: Determine whether the output (PUT) is error-free. If it is, execute step S633; if it is, execute step S633.
[0161] S635. If there is an error in PUT, call FB64001 (write error code 3547) and return to step S633.
[0162] S636, if PUT is correct,
[0163] Then the IT-PLC sets the operation instruction sending command, such as IT_CTRL_WRD.WI_COMMAND_SENT, and executes step S637.
[0164] S637. Determine whether the operation instruction receiving command in ME-PLC, for example, ME_MSG.ME_CTRL_WRD.WI_COMMAND_RECEIVED, is equal to 1. If it is 1, re-execute step S636; if it is 1, execute step S638.
[0165] S638, call a function such as FC27 to shift the queue in DB6201. (The data in DB6201 can be in array form. The first array in DB6201 is defined as an interface. The data in DB6201 can be shifted forward. When the data is exchanged, the data in the first array is deleted. At this time, FC27 can be called to shift the following data forward one position in sequence).
[0166] In addition, the IT PLC can reset the corresponding control bit, as shown below:
[0167] STATION_READY_RECEIVED; (IT PLC confirms receipt of product arrival).
[0168] RR_SENT; (set after IT PLC writes SILK_REQUEST).
[0169] RS_RECEIVED; (set after IT PLC receives MES data).
[0170] MES_DATA_SENT; (IT PLC confirms that the business data has been sent).
[0171] Reset the corresponding business data area:
[0172] Call FC64006 to reset ME_SILK_MSG.
[0173] Call FC64015 to clear and reset the data in IT_RES_1.
[0174] Note: DB6101.ME_SILK_MSG is reset to continue the last data processing process when the condition is falsely triggered.
[0175] Figure 7 It is a schematic block diagram of an operation guidance device according to an embodiment of the present disclosure. The operation guidance device is applied to a production control system, characterized in that the control system includes a host computer, a manufacturing execution system MES, a first programmable logic controller PLC, a second PLC, a workstation and a display device, the host computer is respectively connected to the first PLC and the display device, the first PLC is connected to the MES and one or more second PLCs, the second PLC is connected to one or more workstations, and the display device is connected to one or more workstations;
[0176] The work guidance equipment includes:
[0177] The first transceiver module 710 is used to obtain a first operation instruction request from the second PLC; wherein the first operation instruction request includes an operation instruction identifier requested by the target workstation;
[0178] The second transceiver module 720 is used to send a second operation instruction request to the MES according to the first operation instruction request; wherein the second operation instruction request includes the operation instruction identifier; and receive an operation instruction response sent back by the MES according to the operation instruction identifier, wherein the operation instruction response includes operation instruction type information;
[0179] The third transceiver module 730 is used to send the operation instruction type information to the host computer, search the operation instruction content in the host computer according to the operation instruction type information and send it to the display device connected to the target workstation.
[0180] The first transceiver module 710 , the second transceiver module 720 , and the third transceiver module 730 may be disposed in the first PLC.
[0181] In one embodiment, the operation instruction identifier includes a service identifier written by the workstation into the second PLC that requires requesting operation instructions.
[0182] Figure 8 is a schematic block diagram of a work instruction device according to another embodiment of the present disclosure. The work instruction device may include one or more features of the above-mentioned work instruction device. In one embodiment, the work instruction device also includes:
[0183] The processing module 810 is used to enable the operation guidance function of the first PLC when one or more of the following conditions are met:
[0184] The first PLC starts the online mode;
[0185] The type of request received was assignment instructions;
[0186] This workstation requires work instructions;
[0187] The first PLC is successfully connected to the MES and the host computer respectively.
[0188] In one implementation, the processing module 810 is further configured to:
[0189] When one or more of the following conditions are met, the operation guidance function of the second PLC is enabled:
[0190] The second PLC starts the online mode;
[0191] The second PLC starts the automatic mode;
[0192] The type of request received was assignment instructions;
[0193] The request received was correctly formatted.
[0194] In one implementation, the processing module 810 is further configured to construct the second operation instruction request according to the first operation instruction request; wherein the second operation instruction request includes the business instruction identifier and the target workstation information carried by the first operation instruction request;
[0195] The second transceiver module 720 is further configured to send the second operation instruction request to the MES if the second operation instruction request is correct.
[0196] In one embodiment, the first transceiver module 710 is further used to send a first write instruction to the second PLC when the second operation instruction request is erroneous. The first write instruction includes a first error code, and the first error code is used to indicate that the second operation instruction request is erroneous.
[0197] In one embodiment, the first transceiver module 710 is further used to send a second write instruction to the second PLC when the first write instruction is erroneous, and the second write instruction includes a second error code, and the second error code is used to indicate that the first write instruction is erroneous.
[0198] In one embodiment, the second transceiver module 720 is further used to receive the operation instruction response sent back by the MES, and the operation instruction response includes the operation instruction type information and the first response string variable; wherein the operation instruction type information includes the operation type that needs to be instructed at the workstation; wherein the first response string variable is one or more of the type, number, and associated display device information of the target workstation obtained by the MES according to the analysis of the target workstation information;
[0199] The processing module 810 is also used to parse the first response string variable if the format of the first response string variable is correct; perform format conversion on the first response string variable to obtain a second response string variable;
[0200] The third transceiver module 730 is further used to send the operation instruction type information and the second response string variable to the host computer.
[0201] In one embodiment, the first transceiver module 710 is also used to send a third write instruction to the second PLC when the first response string variable is erroneous, and the third write instruction includes a third error code, and the third error code is used to indicate that the first response string variable is erroneous; when the third write instruction is erroneous, send a fourth write instruction to the second PLC, and the fourth write instruction includes a fourth error code, and the fourth error code is used to indicate that the third write instruction is erroneous.
[0202] In one embodiment, the operation guidance device further includes:
[0203] A search module 820 is used to search the corresponding operation instruction content in the operation instruction database according to the operation instruction type information in the host computer;
[0204] The fourth transceiver module 830 is used for the host computer to send the work instruction content to the display device connected to the target workstation according to one or more of the type, number, and associated display device information of the target workstation.
[0205] The search module 820 and the fourth transceiver module 830 may be arranged in a host computer.
[0206] In one implementation, the third transceiver module 730 is further configured to receive the operation instruction completion information transmitted back by the host computer;
[0207] The processing module 810 is also used for the first PLC to perform a reset operation when the format of the operation instruction completion information is correct.
[0208] In one embodiment, the reset operation includes one or more of the following:
[0209] Clear and reset the control bit corresponding to the first PLC;
[0210] Reset the MES data area;
[0211] Reset the host computer data area.
[0212] For the description of specific functions and examples of each module and submodule of the device in the embodiment of the present disclosure, reference can be made to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.
[0213] 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.
[0214] Fig. 9 FIG. 1 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Fig. 9As shown, the electronic device includes: a memory 910 and a processor 920, and the memory 910 stores a computer program that can be run on the processor 920. The number of memories 910 and processors 920 can be one or more. The memory 910 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 930, which is used to communicate with external devices and perform data exchange transmission.
[0215] If the memory 910, the processor 920 and the communication interface 930 are implemented independently, the memory 910, the processor 920 and the communication interface 930 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, Fig. 9 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.
[0216] Optionally, in a specific implementation, if the memory 910, the processor 920 and the communication interface 930 are integrated on a chip, the memory 910, the processor 920 and the communication interface 930 can communicate with each other through an internal interface.
[0217] It should be understood that the processor may be a central processing unit (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. A 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.
[0218] 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 exemplary but not limiting description, 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).
[0219] 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.
[0220] 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.
[0221] 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.
[0222] 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.
[0223] In the description of the embodiments of the present disclosure, the terms "first" and "second" 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" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "plurality" means two or more.
[0224] 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 guiding work, applied to a production control system, characterized in that: The control system includes a host computer, a manufacturing execution system MES, a first programmable logic controller PLC, a second PLC, a workstation and a display device, wherein the host computer is connected to the first PLC and the display device respectively, the first PLC is connected to the MES and one or more second PLCs, the second PLC is connected to one or more workstations, and the display device is connected to one or more workstations; The operation guidance method comprises: The first PLC obtains a first operation instruction request from the second PLC; wherein the first operation instruction request includes an operation instruction identifier requested by the target workstation; The first PLC sends a second operation instruction request to the MES according to the first operation instruction request; wherein the second operation instruction request includes the operation instruction identifier; The first PLC receives the operation instruction response sent back by the MES according to the operation instruction identifier, where the operation instruction response includes operation instruction type information; The first PLC sends the operation instruction type information to the host computer, and the host computer searches for operation instruction content according to the operation instruction type information and sends it to the display device connected to the target workstation.
2. The method according to claim 1, wherein: The operation instruction identifier includes a service identifier written by the workstation into the second PLC that requires requesting operation instructions.
3. The method according to claim 2, wherein: The method further comprises: When one or more of the following conditions are met, the operation guidance function of the first PLC is enabled: The first PLC starts the online mode; The type of request received was assignment instructions; The workstation requires work instruction; The first PLC is successfully connected to the MES and the host computer respectively.
4. The method according to claim 2, wherein: The method further comprises: When one or more of the following conditions are met, the operation guidance function of the second PLC is enabled: The second PLC starts the online mode; The second PLC starts the automatic mode; The type of request received was assignment instructions; The request received was correctly formatted.
5. The method according to claim 3 or 4, wherein: The first PLC sends a second operation instruction request to the MES according to the first operation instruction request, including: The first PLC constructs the second operation instruction request according to the first operation instruction request, wherein the second operation instruction request includes the business instruction identifier and target workstation information carried by the first operation instruction request; When the second operation instruction request is correct, the first PLC sends the second operation instruction request to the MES.
6. The method according to claim 5, wherein: The method further comprises: In the case where the second operation instruction request is erroneous, the first PLC sends a first write instruction to the second PLC, where the first write instruction includes a first error code, and the first error code is used to indicate that the second operation instruction request is erroneous.
7. The method according to claim 6, wherein: The first PLC receives the operation instruction type information transmitted back by the MES according to the operation instruction identifier, including: The first PLC receives the operation instruction response sent back by the MES, wherein the operation instruction response includes the operation instruction type information and a first response string variable; wherein the operation instruction type information includes the operation type that needs to be instructed at the workstation; wherein the first response string variable is one or more of the type, number, and associated display device information of the target workstation obtained by the MES according to the analysis of the target workstation information; The first PLC parses the first response string variable if the format of the first response string variable is correct; The first PLC performs format conversion on the first response character string variable to obtain a second response character string variable; The first PLC sends the operation instruction type information and the second response string variable to the host computer.
8. The method according to claim 7, wherein: The method further comprises: When the first response string variable is wrong, the first PLC sends a third write instruction to the second PLC, wherein the third write instruction includes a third error code, and the third error code is used to indicate that the first response string variable is wrong; When the third write instruction of the first PLC is erroneous, the first PLC sends a fourth write instruction to the second PLC, wherein the fourth write instruction includes a fourth error code, and the fourth error code is used to indicate that the third write instruction is erroneous.
9. The method according to claim 8, wherein: Searching for work instruction content in the host computer according to the work instruction type information and sending it to the display device connected to the target workstation includes: In the host computer, according to the operation instruction type information, searching for corresponding operation instruction content in the operation instruction database; The host computer sends the work instruction content to the display device connected to the target workstation according to one or more of the type, number, and associated display device information of the target workstation.
10. The method according to claim 9, wherein: The method further comprises: The first PLC receives the operation instruction completion information sent back by the host computer; The first PLC performs a reset operation when the format of the operation instruction completion information is correct.
11. The method according to claim 10, wherein: The reset operation includes one or more of the following: Clearing and resetting the control bit corresponding to the first PLC; Resetting the MES data area; Reset the host computer data area.
12. An operation guidance device, applied to a production control system, characterized in that: The control system includes a host computer, a manufacturing execution system MES, a first programmable logic controller PLC, a second PLC, a workstation and a display device, wherein the host computer is connected to the first PLC and the display device respectively, the first PLC is connected to the MES and one or more second PLCs, the second PLC is connected to one or more workstations, and the display device is connected to one or more workstations; The operation guidance device comprises: A first transceiver module is used to obtain a first operation instruction request from a second PLC; wherein the first operation instruction request includes an operation instruction identifier requested by a target workstation; A second transceiver module is configured to send a second operation instruction request to the MES according to the first operation instruction request; wherein the second operation instruction request includes the operation instruction identifier; and receive an operation instruction response sent back by the MES according to the operation instruction identifier, wherein the operation instruction response includes operation instruction type information; The third transceiver module is used to send the operation instruction type information to the host computer, search the operation instruction content in the host computer according to the operation instruction type information and send it to the display device connected to the target workstation.
13. The work instruction device according to claim 12, wherein: The operation instruction identifier includes a service identifier written by the workstation into the second PLC that requires requesting operation instructions.
14. The work instruction device according to claim 13, wherein: The operation guidance device also includes: The processing module is used to enable the operation guidance function of the first PLC when one or more of the following conditions are met: The first PLC starts the online mode; The type of request received was assignment instructions; The workstation requires work instruction; The first PLC is successfully connected to the MES and the host computer respectively.
15. The work instruction device according to claim 14, wherein: The processing module is also used for: When one or more of the following conditions are met, the operation guidance function of the second PLC is enabled: The second PLC starts the online mode; The second PLC starts the automatic mode; The type of request received was assignment instructions; The request received was correctly formatted.
16. The work instruction device according to claim 14 or 15, wherein: The processing module is further used to construct the second operation instruction request according to the first operation instruction request; wherein the second operation instruction request includes the business instruction identifier and target workstation information carried by the first operation instruction request; The second transceiver module is further configured to send the second operation instruction request to the MES when the second operation instruction request is correct.
17. The work instruction device according to claim 16, wherein: The first transceiver module is further used to send a first write instruction to the second PLC when the second operation instruction request is erroneous, wherein the first write instruction includes a first error code, and the first error code is used to indicate that the second operation instruction request is erroneous.
18. The work instruction device according to claim 17, wherein: The second transceiver module is further used to receive the operation instruction response sent back by the MES, wherein the operation instruction response includes the operation instruction type information and a first response string variable; wherein the operation instruction type information includes the type of operation that needs to be instructed at the workstation; wherein the first response string variable is one or more of the type, number, and associated display device information of the target workstation obtained by the MES according to the analysis of the target workstation information; The processing module is further used to parse the first response string variable if the format of the first response string variable is correct; perform format conversion on the first response string variable to obtain a second response string variable; The third transceiver module is also used to send the operation instruction type information and the second response string variable to the host computer.
19. The work instruction device according to claim 18, wherein: The first transceiver module is further configured to, when the first response string variable is erroneous, cause the first PLC to send a third write instruction to the second PLC, wherein the third write instruction includes a third error code, and the third error code is used to indicate that the first response string variable is erroneous; In the case where the third write instruction is erroneous, the first PLC sends a fourth write instruction to the second PLC, wherein the fourth write instruction includes a fourth error code, and the fourth error code is used to indicate that the third write instruction is erroneous.
20. The work instruction device according to claim 19, wherein: The operation guidance device also includes: A search module, used for searching the corresponding operation instruction content in the operation instruction database according to the operation instruction type information in the host computer; The fourth transceiver module is used for the host computer to send the operation instruction content to the display device connected to the target workstation according to one or more of the type, number, and associated display device information of the target workstation.
21. The work instruction device according to claim 20, wherein: The third transceiver module is also used to receive the operation instruction completion information sent back by the host computer; The processing module is also used for the first PLC to perform a reset operation when the format of the operation instruction completion information is correct.
22. The work instruction device according to claim 21, wherein: The reset operation includes one or more of the following: Clearing and resetting the control bit corresponding to the first PLC; Resetting the MES data area; Reset the host computer data area.