Intelligent dispensing machine control method, dispensing equipment and computer program product
By loading the SECS/GEM communication module on the dispensing equipment end to establish a connection with the MES host end, remote monitoring and automated control of the dispensing machine can be realized. This solves the problems of difficult maintenance and poor stability in the intelligent control of the dispensing machine, provides a standardized integrated control method, and improves the automation level and stability of the system.
Patent Information
- Application Number
- CN202511317529.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-15
- Publication Date
- 2026-01-23
AI Technical Summary
Existing technologies for intelligent control of dispensing machines based on the SECS/GEM protocol suffer from difficulties in implementation and maintenance, as well as poor stability and real-time performance.
A method for controlling an intelligent dispensing machine is provided. By listening to the SECS/GEM communication function module at the dispensing equipment end, loading the dynamic link library, establishing a network connection with the MES host, performing a communication handshake according to the SECS/GEM protocol standard, listening to production commands and monitoring the equipment status, the remote monitoring and automated control of the equipment is realized.
It solves the problems of low automation level of dispensing machines, difficulty in integration with upper management systems, and inability to achieve remote monitoring and real-time data interaction. It provides a standardized and automated integrated control method, which reduces maintenance costs and improves system stability.
Smart Images

Figure CN121372779A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of automated processing technology, and in particular relates to an intelligent dispensing machine control method, dispensing equipment and computer program product. Background Technology
[0002] In semiconductor equipment, dispensing machines are crucial devices in the underfill process, and their level of automation and intelligence directly impacts product quality and production efficiency. Traditional dispensing machines often employ manual or semi-automatic control, resulting in complex operation and low efficiency, failing to meet the high-precision and high-efficiency demands of modern electronics manufacturing. To achieve intelligent control of dispensing machines, the SECS (SEMI Equipment Communication Standard) / GEM (General Model for Manufacturing Equipment Communication and Control) communication protocol, widely adopted in industrial automation, has become an important technical approach. This allows for dynamic uploading of production data, remote operation of the machine, and data exchange between the equipment and the Manufacturing Execution System (MES), enabling remote monitoring, status management, and automated control of the equipment. However, existing intelligent control technologies for dispensing machines based on the SECS / GEM protocol suffer from technical drawbacks such as difficult implementation and maintenance, and poor stability and real-time performance. Summary of the Invention
[0003] This application provides an intelligent dispensing machine control method, dispensing equipment, and computer program product, aiming to solve the technical problems of difficult implementation and poor stability and real-time performance in the intelligent control of dispensing machines based on the SECS / GEM protocol in the prior art.
[0004] In a first aspect, this application provides an intelligent dispensing machine control method. The method operates on a dispensing device and is used to achieve integrated communication and automated control with an MES host. The intelligent dispensing machine control method includes the following steps:
[0005] When the main program is started, the main program monitors the SECS / GEM communication function module. When the main program detects that the SECS / GEM communication function module is enabled, the SECS / GEM communication function module is loaded. The main program is deployed on the dispensing equipment.
[0006] With the SECS / GEM communication function module loaded, a network connection is established with the MES host, and a communication handshake is performed according to the SECS / GEM protocol standard to register the dispensing equipment as online.
[0007] Listen to and receive production instructions from the MES host, control the dispensing equipment to perform production tasks according to the production instructions, monitor the working status of the dispensing equipment during the production process, and report alarm information to the MES host if the working status is abnormal.
[0008] When the production task is completed, the relevant data of the production task is sent to the MES host.
[0009] Preferably, loading the SECS / GEM communication function module when the main program detects that the SECS / GEM communication function module is enabled includes:
[0010] When the main program detects that the SECS / GEM communication function module has been enabled, the main program calls the interface function provided by the operating system during runtime to load the dynamic link library that implements all functions of the SECS / GEM protocol into the memory of the dispensing device, and obtains the function address of the dynamic link library in order to use the functions of the SECS / GEM communication function module.
[0011] Preferably, the step of establishing a network connection with the MES host and performing a communication handshake according to the SECS / GEM protocol standard, after the SECS / GEM communication function module has been loaded, to register the dispensing equipment as online, includes:
[0012] Read and parse the local configuration file of the dispensing equipment to obtain the network address information of the MES host;
[0013] Based on the network address information, a TCP connection is established with the MES host through the network communication library built into the SECS / GEM communication function module;
[0014] After the TCP connection is established, the dispensing device actively sends a first request message to the MES host and waits to receive a first response message corresponding to the first request message returned by the MES host, thereby completing the communication handshake.
[0015] Upon completion of the communication handshake, a status message indicating that the dispensing equipment is ready is sent to the MES host to complete the interactive registration.
[0016] Preferably, the step of reading and parsing the local configuration file of the dispensing equipment to obtain the network address information of the MES host further includes:
[0017] If parsing the local configuration file of the dispensing device fails, a parsing failure message will be generated;
[0018] The system receives new configuration information input by the user through the human-machine interface of the dispensing device, reads and parses the new configuration information to obtain the network address information of the MES host.
[0019] Preferably, the step of listening to and receiving production instructions from the MES host and controlling the dispensing equipment to perform production tasks according to the production instructions includes:
[0020] The received production instructions from the MES host are validated using the SECS / GEM protocol format. If the instruction format validation passes, the production instructions are parsed to control the dispensing equipment to perform production tasks.
[0021] Optionally, the method further includes:
[0022] The system responds to user input of SECS / GEM protocol adjustment information via the human-machine interface of the dispensing device, in order to update the SECS / GEM communication function module.
[0023] Preferably, when the production task is completed, sending the status data and output data of the production task to the MES host includes:
[0024] Send a connection termination request to the MES host to disconnect the network connection with the MES host.
[0025] Preferably, when the production task is completed, sending the relevant data of the production task to the MES host includes:
[0026] When the production task is completed, the status data and output data of the production task are sent to the MES host.
[0027] In a second aspect, the present invention also proposes a dispensing device, the dispensing device comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the control method described in the first aspect above.
[0028] Thirdly, the present invention also proposes a computer program product, which stores a computer program that, when executed by a dispensing device, implements the control method described in the first aspect above.
[0029] The beneficial effects of this invention are as follows: The control method for an intelligent dispensing machine based on the SECS / GEM communication protocol provided by this invention operates on the dispensing equipment to achieve integrated communication and automated control with the MES host: First, when the main program is started, the main program listens for the SECS / GEM communication function module. When the main program detects that the SECS / GEM communication function module is enabled, it loads the SECS / GEM communication function module. Then, with the SECS / GEM communication function module loaded, a network connection is established with the MES host, and a communication handshake is performed according to the SECS / GEM protocol standard to register the dispensing equipment as online. Next, the system listens for and receives production instructions from the MES host, controls the dispensing equipment to execute production tasks according to the production instructions, and monitors the working status of the dispensing equipment during the production process. If the working status is abnormal, an alarm message is reported to the MES host. Finally, when the production task is completed, the relevant data of the production task is sent to the MES host. This invention addresses the problems of low automation levels, difficulty in integrating with upper-level management systems (MES), and inability to achieve remote monitoring and real-time data interaction in traditional dispensing machines, and provides a standardized and automated integrated control method. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 This is a flowchart illustrating a main embodiment of the intelligent dispensing machine control method provided in this application;
[0032] Figure 2 This is a flowchart illustrating another main embodiment of the intelligent dispensing machine control method provided in this application;
[0033] Figure 3 This is a schematic diagram of the dispensing equipment provided in the embodiments of this application. Detailed Implementation
[0034] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0035] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0036] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0037] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0038] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0039] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0040] Understandably, to achieve intelligent control of dispensing machines, the SECS / GEM communication protocol, widely used in industrial automation, has become an important technical means. It enables dynamic uploading of production data, remote operation of the machine for data exchange between the equipment and the Manufacturing Execution System (MES), and facilitates remote monitoring, status management, and automated control of the equipment.
[0041] Advantages of existing technology:
[0042] 1. As a standard protocol in the semiconductor industry, SECS / GEM has good compatibility and scalability, which is conducive to the integration of equipment with systems such as MES.
[0043] 2. It can realize the real-time uploading and downloading of equipment status, alarms and production data, thereby improving response speed and management level.
[0044] 3. Remote operation of equipment is achieved through protocols, reducing human intervention and improving the level of production automation.
[0045] However, the applicant found that existing technical solutions for intelligent control of dispensing machines using SECS / GEM communication protocol technology have the following drawbacks:
[0046] 1. The protocol is complex to implement and difficult to maintain, resulting in long software development cycles and high maintenance costs.
[0047] 2. There are potential risks to the system's stability and real-time performance. Communication delays or interruptions may occur in the production environment, affecting the continuity and safety of equipment operation.
[0048] To address the technical problems of difficult implementation and poor stability and real-time performance in the existing intelligent control of dispensing machines based on the SECS / GEM protocol, this embodiment proposes a control method for an intelligent dispensing machine based on the SECS / GEM communication protocol. This method operates at the dispensing equipment end and is used to achieve integrated communication and automated control with the MES (Manufacturing Execution System) host end. The method includes the following steps: Step 1 to Step 4:
[0049] Step 1 (Communication Initialization Step): When the dispensing equipment starts the main program, the main program listens for the SECS / GEM communication function module. When the main program detects that the SECS / GEM communication function module is enabled, it loads the SECS / GEM communication function module.
[0050] For example, the main program is deployed on the dispensing equipment, and the main program represents the program responsible for the control logic of the dispensing machine itself; the dispensing equipment does not passively wait, but continuously monitors the network channel through an independent listening thread in the main program. This ensures that it can receive start, stop, and other control commands from the MES in real time and respond in real time.
[0051] The SECS / GEM communication module is a dynamic link library (DLL) that integrates communication and automated control with the MES host. When the SECS / GEM communication module is activated, it indicates that the dispensing equipment needs to communicate with the MES host to execute the production task.
[0052] In the specific implementation, after the dispensing equipment starts the main program, the main program dynamically detects whether the dispensing equipment has enabled the SECS / GEM communication function module locally through plug-in. If it is enabled, it loads it.
[0053] Understandably, when the main program on the dispensing device starts up, it will not load all the functional code (especially optional and independent functions such as SECS / GEM communication) into the memory of the dispensing device and run it all at once; the main program in this embodiment will actively detect to determine whether the current system is configured to enable the SECS / GEM communication function.
[0054] If the need to enable SECS / GEM communication is detected, the main program will call the interface function API provided by the operating system in the runtime segment to load the dynamic link library (DLL) file that implements all the functions of the SECS / GEM protocol into memory and obtain its function address before it can use the functions of the SECS / GEM communication module.
[0055] Step 2 (Connection Handshake and Registration Steps): With the SECS / GEM communication function module loaded, the dispensing equipment establishes a network connection with the Manufacturing Execution System (MES) host and performs a communication handshake according to the SECS / GEM protocol standard to register the dispensing equipment as online.
[0056] For example, when the SECS / GEM communication function module is successfully loaded, the dispensing device establishes a physical connection with the MES host based on the TCP network communication protocol, then performs a communication handshake according to the SECS / GEM protocol standard, and sends a device online status message to the MES host after the handshake is successful to complete the device registration;
[0057] Step 3 (Listening, Execution and Monitoring Steps): The dispensing equipment listens for and receives production instructions from the MES host, controls the dispensing equipment to execute automatic production tasks according to the production instructions, and monitors the working status of the dispensing equipment in real time during the production process. If there is an abnormality in the working status, an alarm message is reported to the MES host.
[0058] For example, after the dispensing equipment is successfully registered, it continuously listens for control commands from the MES host, performs format verification on the received commands, and if the verification passes, it parses and executes the corresponding automatic production task. Simultaneously, it monitors the equipment status in real time during production, and reports alarm information to the MES host if any abnormality occurs. For instance, if an abnormality occurs during production (such as glue blockage or insufficient air pressure), the system can immediately interrupt the production process and report alarm information in real time. The MES system can detect faults immediately and notify personnel for handling, avoiding the production of a large number of defective products and ensuring the safety of equipment operation and the continuity of production.
[0059] Step 4 (Production Data Reporting Step): After the production task is completed, send the status data and output data of this production task to the MES host.
[0060] For example, in this embodiment, the status data and production data can be organized and encapsulated according to the data collection function defined in the SECS / GEM protocol before being reported; it is clear that the reporting of production data is not a simple transmission, but a data specification that follows international standard protocols, ensuring the accuracy and resolvability of the data received by the upstream system (MES).
[0061] The control method for an intelligent dispensing machine based on the SECS / GEM communication protocol provided in this embodiment solves the problems of low automation, difficulty in integration with the upper-level management system (MES), and inability to achieve remote monitoring and real-time data interaction in traditional dispensing machines, and provides a standardized and automated integrated control method.
[0062] Preferably, in one embodiment, the method further includes:
[0063] The system responds to user input of SECS / GEM protocol adjustment information via the human-machine interface of the dispensing device, in order to update the SECS / GEM communication function module.
[0064] As described in the foregoing embodiments, the SECS / GEM communication function module is a dynamic link library (DLL). This application encapsulates the most complex and specialized SECS / GEM protocol implementation into an independent DLL module, separating it from the main program (responsible for the dispensing machine's own control logic), thus achieving decoupling and modularization. This simplifies the development of the main program, allowing developers to focus on the dispensing machine's own business logic without needing to deeply understand the complex details of the SECS / GEM protocol. The development and maintenance of the protocol module (i.e., the SECS / GEM communication function module) can be handled by a dedicated communication protocol engineer.
[0065] When users need to upgrade or modify the SECS / GEM protocol in the SECS / GEM communication module, they only need to replace or update this independent dynamic library file (DLL), without having to recompile, test, and release the entire main program software. This greatly reduces the later maintenance costs and upgrade complexity.
[0066] Furthermore, the same SECS / GEM protocol library can be reused for software in other types of semiconductor equipment (such as wire bonders and chip mounters), greatly shortening the software development cycle for new equipment.
[0067] Preferably, in one embodiment, Step 2 (connection handshake and registration step) further includes the following sub-steps:
[0068] Step 21 (Configuration Acquisition Step): Read and parse the local configuration file of the dispensing equipment to obtain the network address information of the MES host.
[0069] For example, the configuration file local to the dispensing device is in Extensible Markup Language (XML) format;
[0070] Step 22 (Physical Connection Establishment Step): Based on the obtained network address information, establish a TCP connection with the MES host through the network communication library built into the SECS / GEM communication function module;
[0071] Step 23 (Communication Handshake Step): After the TCP connection is established, the dispensing device actively sends a first request message to the MES host and waits to receive a first response message corresponding to the first request message returned by the MES host, thereby completing the communication handshake.
[0072] Understandably, the "request-response" handshake pattern (first request message S1F1 -> first response message S1F2) ensures that the communication link between the two parties is truly smooth and both parties are in a ready state before the formal production data exchange begins. This avoids data loss caused by blindly sending data when the connection is unstable or the other party is not ready.
[0073] Step 24 (Device Registration Step): After a successful handshake, a status message indicating that the dispensing device is ready is sent to the MES host to complete the interactive registration.
[0074] Understandably, a clear handshake process keeps the communication status of the device and the MES host synchronized, laying a solid foundation for stable subsequent communication.
[0075] In practical implementation, "it can read the contents of a local configuration file (which is in .xml format) and parse the XML content"; for example, it can use standard messages such as "S1F1" and "S1F2" for handshaking.
[0076] Understandably, this embodiment reduces configuration complexity by using the above solution: volatile communication parameters (such as the MES system's IP address and port number) are removed from hard-coded configuration and placed in a standardized XML configuration file. Users or maintenance personnel do not need to modify the code; they only need to edit the configuration file to adapt to different factory environments.
[0077] Specifically, this embodiment follows international standards: it strictly adopts the SECS / GEM protocol and message format defined by the SEMI international standard (such as S1F13 / F14 for state management, S2F13 for data collection, and S2F47 for sending modified constraint variables, etc.). This means that the communication logic is standardized and predictable, rather than a messy proprietary protocol, thereby reducing uncertainty and technical risks in the development process.
[0078] This embodiment details and clarifies the specific process for establishing a reliable and standardized communication link between the dispensing machine and the MES system. Through dynamic loading, configuration redundancy acquisition, and standard handshake process, it solves the technical problems of complex protocol integration and unstable connection establishment.
[0079] Furthermore, in some embodiments, for Step 22 (physical connection establishment step) described above, the method further includes: generating a parsing failure message if parsing the local configuration file of the dispensing device fails; receiving new configuration information input by the user through the human-machine interface on the dispensing device, reading and parsing the new configuration information to obtain the network address information of the MES host. This embodiment provides a redundancy mechanism for obtaining configuration information, enhancing the reliability and usability of the system, and solving the problem of connection failure due to configuration file errors.
[0080] In some embodiments, Step 3 (listening execution and monitoring steps) described above includes:
[0081] The received instructions are validated using the SECS / GEM protocol format. Only after the instruction format validation passes will the instruction content be further parsed and the corresponding production task executed.
[0082] This embodiment adds an instruction format verification step, which effectively filters out illegal or erroneous instructions, significantly improving the safety and reliability of the system in executing production tasks and preventing equipment malfunctions.
[0083] In some embodiments, following Step 4 (the production data reporting step) described above, the following steps are also included:
[0084] Step 5 (Connection Termination Step): Send a connection termination request to the MES host and disconnect the network connection with the MES host after the request is completed.
[0085] Specifically, the dispensing device actively sends an offline request message to the MES host, and disconnects the underlying network connection after receiving a confirmation message or waiting for a timeout.
[0086] This embodiment defines a standardized connection termination process. By requesting before disconnecting, it ensures the consistency of the states of both communicating parties, avoids data loss or abnormal connection states, and improves the integrity and reliability of the communication process.
[0087] It should be noted that, in the method steps of the above embodiments, in specific applications, the entire communication process preferably uses standard SxFy messages, such as handshake (S1F1 / S1F2), data upload (S6F11), and request offline (S1F16).
[0088] It helps reduce the risk of communication delays: each message has a clear purpose and format, resulting in high processing efficiency. When communication is restored after an interruption, resynchronization can be performed based on the ID of the last successfully exchanged message, rather than requiring a complete retransmission of all data.
[0089] It helps ensure data integrity: Every critical operation (such as starting production, ending production, and reporting data) is completed through a complete and standard transactional message, ensuring the complete delivery and confirmation of operation instructions and data packets, and avoiding problems such as incomplete data packets or lost instructions due to network fluctuations.
[0090] Furthermore, this application also provides embodiments of dispensing equipment. Figure 3 This is a schematic diagram of the structure of a dispensing device provided in one embodiment of this application. Figure 3 As shown, the dispensing device 3 includes: at least one processor 31, a memory 32, and a computer program 33 stored in the memory 32 and executable on the at least one processor 31. When the processor 31 executes the computer program 33, it implements the steps in any of the above-described control method embodiments.
[0091] In this embodiment, the dispensing device 3 is used to run the control method of the intelligent dispensing machine based on the SECS / GEM communication protocol mentioned in the previous embodiment, so as to realize integrated communication and automated control with the MES host.
[0092] The processor 31 can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0093] In some embodiments, the memory 32 may be an internal storage unit of the dispensing apparatus 3, such as a hard disk or memory of the dispensing apparatus 3. In other embodiments, the memory 32 may be an external storage device of the dispensing apparatus 3, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the dispensing apparatus 3. Furthermore, the memory 32 may include both internal and external storage units of the dispensing apparatus 3. The memory 32 is used to store operating systems, applications, bootloaders, data, and other programs, such as the program code of computer programs. The memory 32 can also be used to temporarily store data that has been output or will be output.
[0094] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0095] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various method embodiments above.
[0096] This application provides a computer program product that, when run on a dispensing device 3, enables the dispensing device 3 to perform the steps described in the above-described method embodiments.
[0097] Furthermore, this application embodiment also provides a computer storage medium, which is a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the steps in the above-described method embodiments.
[0098] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a photographing device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0099] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0100] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0101] In the embodiments provided in this application, it should be understood that the disclosed apparatus / network devices and methods can be implemented in other ways. For example, the apparatus / network device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0102] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0103] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A control method for an intelligent dispensing machine, characterized in that, The method operates on a dispensing device to achieve integrated communication and automated control with the MES host. The intelligent dispensing machine control method includes the following steps: When the main program is started, the main program monitors the SECS / GEM communication function module. When the main program detects that the SECS / GEM communication function module is enabled, the SECS / GEM communication function module is loaded. The main program is deployed on the dispensing equipment. With the SECS / GEM communication function module loaded, a network connection is established with the MES host, and a communication handshake is performed according to the SECS / GEM protocol standard to register the dispensing equipment as online. Listen to and receive production instructions from the MES host, control the dispensing equipment to perform production tasks according to the production instructions, monitor the working status of the dispensing equipment during the production process, and report alarm information to the MES host if the working status is abnormal. When the production task is completed, the relevant data of the production task is sent to the MES host.
2. The intelligent dispensing machine control method as described in claim 1, characterized in that, When the main program detects that the SECS / GEM communication function module is enabled, loading the SECS / GEM communication function module includes: When the main program detects that the SECS / GEM communication function module has been enabled, the main program calls the interface function provided by the operating system during runtime to load the dynamic link library that implements all functions of the SECS / GEM protocol into the memory of the dispensing device, and obtains the function address of the dynamic link library in order to use the functions of the SECS / GEM communication function module.
3. The intelligent dispensing machine control method as described in claim 1, characterized in that, The step of establishing a network connection with the MES host and performing a communication handshake according to the SECS / GEM protocol standard, when the SECS / GEM communication function module has been loaded, to register the dispensing equipment as online, includes: Read and parse the local configuration file of the dispensing equipment to obtain the network address information of the MES host; Based on the network address information, a TCP connection is established with the MES host through the network communication library built into the SECS / GEM communication function module; After the TCP connection is established, the dispensing device actively sends a first request message to the MES host and waits to receive a first response message corresponding to the first request message returned by the MES host, thereby completing the communication handshake. Upon completion of the communication handshake, a status message indicating that the dispensing equipment is ready is sent to the MES host to complete the interactive registration.
4. The intelligent dispensing machine control method as described in claim 3, characterized in that, The step of reading and parsing the local configuration file of the dispensing equipment to obtain the network address information of the MES host also includes: If parsing the local configuration file of the dispensing device fails, a parsing failure message will be generated; The system receives new configuration information input by the user through the human-machine interface of the dispensing device, reads and parses the new configuration information to obtain the network address information of the MES host.
5. The intelligent dispensing machine control method as described in claim 1, characterized in that, The process of listening to and receiving production instructions from the MES host and controlling the dispensing equipment to perform production tasks according to the production instructions includes: The received production instructions from the MES host are validated using the SECS / GEM protocol format. If the instruction format validation passes, the production instructions are parsed to control the dispensing equipment to perform production tasks.
6. The intelligent dispensing machine control method according to any one of claims 1 to 5, characterized in that, The method further includes: The system responds to user input of SECS / GEM protocol adjustment information via the human-machine interface of the dispensing device, in order to update the SECS / GEM communication function module.
7. The intelligent dispensing machine control method according to any one of claims 1 to 5, characterized in that, When the production task is completed, sending the production task status data and output data to the MES host includes: Send a connection termination request to the MES host to disconnect the network connection with the MES host.
8. The intelligent dispensing machine control method according to any one of claims 1 to 5, characterized in that, When the production task is completed, sending relevant data about the production task to the MES host includes: When the production task is completed, the status data and output data of the production task are sent to the MES host.
9. A dispensing device, characterized in that, The dispensing device includes a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the method as described in any one of claims 1-8.
10. A computer program product, said computer program product storing a computer program, characterized in that, When the computer program is executed by the dispensing equipment, it implements the method as described in any one of claims 1 to 8.
Citation Information
Cited By
SECS / GEM equipment time series data management method based on event driving
CN121764758A