Formula switching method and device, electronic equipment, readable storage medium and program product
Through the recipe switching method in the field of LCD module testing, the recipe switching instructions, verification requests and parameter adjustment feedback are used to solve the cumbersome and inconsistent problems of traditional recipe switching, and efficient and accurate recipe switching is achieved to ensure product quality.
Patent Information
- Application Number
- CN202411226067.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-12-17
AI Technical Summary
In the field of LCD module testing, the traditional formula switching process is cumbersome and inefficient, which can easily lead to inconsistent formulas of various functional modules. Especially when testing product types on the production line, it is necessary to manually switch the formula.
Provide a recipe switching method, by sending an instruction verification request to the monitoring terminal after receiving the recipe switching instruction, and sending the corresponding recipe parameters to the upper computer after the verification is passed, receiving and confirming the parameter adjustment feedback information, To ensure the accuracy and efficiency of recipe switching. This method includes finding and storing recipe information in the power-off hold register to ensure successful recipe switching.
Improve the efficiency and accuracy of formula switching, reduce formula setting errors caused by manual operation errors, ensure product quality, and realize an automated formula switching process.
Smart Images

Figure CN119149315A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automatic control technology, and in particular to a recipe switching method, device, electronic device, readable storage medium and program product. Background Art
[0002] In the field of LCD module testing, the equipment recipe is a collection of multiple parameters, and these parameters are different for testing modules of different types and sizes. Therefore, when the type of product tested on the production line changes, a synchronous recipe switch is required. This process involves parameter settings for multiple functional modules, including but not limited to the recipe name, recipe number, servo parameters, robot parameters, stepper motor parameters, inverter parameters, function parameters, alignment parameters, camera-related parameters, algorithm-related parameters, and grading specification parameters.
[0003] In traditional technology, the recipe of each functional module is managed independently. When the product type detected on the production line changes, the recipes need to be switched manually one by one. Although this operation method can achieve the switching of recipes, the operation process is cumbersome and inefficient, and it is easy to cause the recipes of each functional module to be inconsistent. Summary of the invention
[0004] Based on this, it is necessary to provide a recipe switching method, device, electronic device, readable storage medium and program product that can improve switching efficiency and accuracy in response to the above technical problems.
[0005] In a first aspect, the present application provides a recipe switching method, wherein the recipe is a set of configuration parameters used by multiple functional modules when performing product testing, and the method includes:
[0006] When receiving a recipe switching instruction, sending an instruction verification request to the monitoring terminal, the recipe switching instruction including the product name of the product to be detected and the recipe identifier of the recipe to be switched; the instruction verification request is used to instruct the monitoring terminal to verify the recipe switching instruction according to the monitoring information;
[0007] When receiving the verification result returned by the monitoring terminal, sending the recipe corresponding to the recipe identifier to the host computer to instruct the host computer to adjust the configuration parameters according to the recipe;
[0008] Receiving parameter adjustment feedback information returned by the host computer, wherein the parameter adjustment feedback information includes the configuration parameters adjusted by the host computer;
[0009] When it is determined that the adjusted configuration parameters in the parameter adjustment feedback information match the recipe corresponding to the recipe identifier, a message indicating successful recipe switching is returned in response to the recipe switching instruction.
[0010] In one of the embodiments, the method further includes: returning an audible and visual alarm when it is determined that the configuration parameters in the parameter adjustment feedback information do not match the recipe corresponding to the recipe identifier.
[0011] In one of the embodiments, the method further comprises: returning an audible and visual alarm when receiving a verification failure result returned by the monitoring terminal.
[0012] In one of the embodiments, before receiving the recipe switching instruction, the method also includes: obtaining product information of the product to be detected, the product information including the product name of the product to be detected; searching for the recipe corresponding to the product name in a power-off retention register; and when the recipe is found, obtaining the recipe identifier of the recipe and returning it.
[0013] In one embodiment, the product information also includes attribute information of the product to be detected, and the method further includes: if the formula is not found, establishing a formula of the product to be detected based on the attribute information of the product to be detected, and generating a formula identifier of the formula.
[0014] In one of the embodiments, the method further comprises: storing the formula of the product to be detected and the mapping relationship between the formula, the product name and the formula identifier in the power-off retention register.
[0015] In one of the embodiments, establishing the formula of the product to be detected based on the attribute information of the product to be detected includes: searching for a historical formula that matches the attribute information of the product to be detected in the power-off retention register; copying the historical formula, and establishing the formula of the product to be detected based on the copied historical formula.
[0016] In one of the embodiments, sending the recipe corresponding to the recipe identifier to the upper computer includes: searching for the recipe corresponding to the recipe identifier in a power-off retention register, and sending the recipe to the upper computer.
[0017] In one of the embodiments, the method further includes: upon receiving a recipe deletion instruction, sending an instruction deletion request to a monitoring terminal, wherein the recipe deletion instruction includes a recipe identifier of the recipe to be deleted and a corresponding product name; upon receiving an approval of the request returned by the monitoring terminal, deleting the recipe and the mapping relationship corresponding to the recipe identifier and the product name from a power-off retention register.
[0018] In a second aspect, the present application further provides a recipe switching device, wherein the recipe is a set of configuration parameters used by multiple functional modules when performing product testing, and the device comprises:
[0019] A request sending module, configured to send an instruction verification request to a monitoring terminal upon receiving a recipe switching instruction, wherein the recipe switching instruction includes a product name of a product to be detected and a recipe identifier of a recipe to be switched; the instruction verification request is used to instruct the monitoring terminal to verify the recipe switching instruction according to monitoring information;
[0020] A recipe sending module, configured to send a recipe corresponding to the recipe identifier to a host computer upon receiving a verification result returned by the monitoring terminal, so as to instruct the host computer to adjust configuration parameters according to the recipe;
[0021] A feedback receiving module, used for receiving parameter adjustment feedback information returned by the host computer, wherein the parameter adjustment feedback information includes the configuration parameters adjusted by the host computer;
[0022] The recipe switching module is used to return a message indicating successful recipe switching in response to the recipe switching instruction when it is determined that the adjusted configuration parameters in the parameter adjustment feedback information match the recipe corresponding to the recipe identifier.
[0023] In a third aspect, the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0024] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0025] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of the above method when executed by a processor.
[0026] The above-mentioned recipe switching method, device, electronic device, computer-readable storage medium and computer program product, when receiving a recipe switching instruction, sends a command verification request to the monitoring terminal, and when receiving the verification result returned by the monitoring terminal, sends the recipe corresponding to the recipe identifier to the host computer, and receives the parameter adjustment feedback information returned by the host computer, and when it is determined that the adjusted configuration parameters in the parameter adjustment feedback information match the recipe corresponding to the recipe identifier, responds to the recipe switching instruction and returns a message that the recipe switching is successful. It manages the set of configuration parameters used by multiple functional modules when performing product testing as a recipe, and associates the corresponding products, so that when changing the product to be tested, it only needs to switch to the corresponding recipe, which improves the efficiency of recipe switching. And in the recipe switching process, through two verifications, the accuracy of the recipe switching can be ensured. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 A diagram of an application environment of a recipe switching method in an embodiment;
[0029] Figure 2 A schematic flow chart of a recipe switching method in one embodiment;
[0030] Figure 3 A schematic flow chart of a recipe processing step in one embodiment;
[0031] Figure 4 is a structural block diagram of a recipe switching device in an embodiment;
[0032] Figure 5 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0034] The recipe switching method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown in the figure, the programmable logic controller (PLC) communicates with the human-machine interaction module, the host computer and the monitoring terminal respectively. The PLC, the human-machine interaction module, the host computer and the monitoring terminal constitute a recipe switching system.
[0035] Specifically, the PLC is used to store and logically control various parameters, such as recipe number, product name, servo parameters, robot parameters, stepper motor parameters, inverter parameters, functional parameters, etc., and communicate with the human-computer interaction module, monitoring terminal and host computer to achieve information handshake. The human-computer interaction module includes a touch screen for displaying various parameters, and performing one-key switching, new creation, copying, pasting, and deleting of recipes. In this way, the recipe can be quickly switched through simple operations to improve production efficiency. The host computer is used to store alignment parameters, camera-related parameters, algorithm-related parameters, and grade specification parameters, and complete one-key switching, new creation, copying, pasting, and deleting of related recipe parameters according to the instructions of the PLC. In this way, recipe setting errors caused by manual operation errors can be avoided to ensure product quality. The monitoring terminal is used for comparison, management, and confirmation of recipes in Inline and Online situations. In this way, effective management and monitoring of recipes of various functional modules can be achieved, and the use and effect of recipes can be understood in real time, providing a basis for recipe optimization and adjustment. The entire system uses an automated method to switch recipes, greatly reducing the frequent manual recipe switching operations caused by product type changes, improving production efficiency, while also avoiding recipe setting errors caused by manual operation errors and ensuring product quality.
[0036] In one embodiment, a recipe switching method is provided, wherein a recipe is a set of configuration parameters used by multiple functional modules when performing product testing. The method of this embodiment can be applied to a programmable logic controller (PLC), such as Figure 2 As shown, the method comprises the following steps:
[0037] Step 202: upon receiving a recipe switching instruction, sending an instruction verification request to a monitoring terminal.
[0038] Among them, the recipe switching instruction is an instruction or command for recipe switching, and the recipe is a collection of configuration parameters used by multiple functional modules for product testing. Usually, in the field of LCD module testing, the same detection equipment can often detect different display screens, and for different display screens, the servo parameters, robot parameters, stepper motor parameters, inverter parameters, functional parameters, alignment parameters, camera-related parameters, algorithm-related parameters, grading specification parameters and other configuration parameters of the detection equipment may be different, that is, the recipes (configuration parameters) used by the detection equipment for different display screens are different. Therefore, when the type of product to be detected changes, the recipe switching needs to be performed synchronously. Specifically, the recipe switching instruction includes the product name of the product to be detected and the recipe identifier of the recipe to be switched. The recipe identifier is used to uniquely determine a recipe, and the product name is used to uniquely identify a product. The configuration parameters of each functional module in each recipe may be different, and each recipe is used to detect the corresponding product.
[0039] In this embodiment, when the detected product type changes, the user can initiate a recipe switching instruction to the PLC based on human-computer interaction. When the PLC receives the recipe switching instruction, it sends an instruction verification request to the monitoring terminal. The instruction verification request is used to instruct the monitoring terminal to verify the recipe switching instruction according to the monitoring information. The monitoring terminal can be a computer device, specifically a PC, which is used for comparing, managing and confirming recipes in Inline and Online situations. The monitoring information can be relevant information of the production site obtained by the monitoring terminal, for example, it can be production plan information, production scheduling information, etc. of the production site. The monitoring information can also be a mapping relationship between each product name and recipe identifier that is pre-set and stored in the monitoring terminal.
[0040] In order to avoid human error operation, the present embodiment can verify the recipe switching instruction through the monitoring terminal. Specifically, the monitoring terminal can verify the consistency of the product name and recipe identifier in the recipe switching instruction based on the monitoring information. When it is determined after verification that the product name and recipe identifier in the recipe switching instruction are consistent with the monitoring information, the result of verification passing is returned to the PLC. When it is determined after verification that the product name and recipe identifier in the recipe switching instruction are inconsistent with the monitoring information, the result of verification failing is returned to the PLC. In this way, error operation is avoided and the accuracy of recipe switching is improved.
[0041] Step 204: When receiving the verification result returned by the monitoring terminal, the recipe corresponding to the recipe identifier is sent to the upper computer.
[0042] Specifically, when the PLC receives the verification result returned by the monitoring terminal, it sends the recipe corresponding to the recipe identifier to the host computer to instruct the host computer to adjust the configuration parameters according to the recipe. For example, the host computer can adjust the alignment parameters, camera-related parameters, algorithm-related parameters, grading specification parameters, etc. according to the recipe.
[0043] In one scenario, when the PLC receives a verification failure result from the monitoring terminal, it returns an audible and visual alarm to prompt the staff to troubleshoot the problem, thereby avoiding the occurrence of recipe switching errors.
[0044] Step 206: Receive parameter adjustment feedback information returned by the host computer.
[0045] Among them, the parameter adjustment feedback information includes the configuration parameters adjusted by the host computer. Specifically, after adjusting the relevant configuration parameters, the host computer can also feed back the adjusted configuration parameters to the PLC, and the PLC will confirm again to ensure the correctness of the adjustment. Specifically, the PLC verifies the configuration parameters adjusted by the host computer in the parameter adjustment feedback information returned by the host computer based on the recipe sent to the host computer, so as to verify whether the configuration parameters adjusted by the host computer match the recipe.
[0046] Step 208: When it is determined that the adjusted configuration parameters in the parameter adjustment feedback information match the recipe corresponding to the recipe identifier, in response to the recipe switching instruction, a message indicating that the recipe switching is successful is returned.
[0047] Specifically, when the PLC determines that the adjusted configuration parameters in the parameter adjustment feedback information match the recipe corresponding to the recipe identifier, it responds to the recipe switching instruction, ie, executes the recipe switching, and returns a message indicating that the recipe switching is successful.
[0048] In one scenario, when the PLC determines that the adjusted configuration parameters in the parameter adjustment feedback information do not match the recipe corresponding to the recipe identifier, it returns an audible and visual alarm to prompt the staff to troubleshoot the problem, thereby avoiding the occurrence of recipe switching errors.
[0049] In the above recipe switching method, when the PLC receives the recipe switching instruction, it sends a command verification request to the monitoring terminal. When the verification result returned by the monitoring terminal is received, the PLC sends the recipe corresponding to the recipe identifier to the host computer, and receives the parameter adjustment feedback information returned by the host computer. When it is determined that the adjusted configuration parameters in the parameter adjustment feedback information match the recipe corresponding to the recipe identifier, the PLC responds to the recipe switching instruction and returns a message that the recipe switching is successful. It manages the set of configuration parameters used by multiple functional modules for product testing as recipes and associates the corresponding products, so that when changing the product to be tested, it only needs to switch to the corresponding recipe, which improves the efficiency of recipe switching. And in the recipe switching process, through two verifications, the accuracy of the recipe switching can be ensured.
[0050] In one embodiment, in step 204, upon receiving the verification result returned by the monitoring terminal, the method may further include: adjusting the configuration parameters of each functional module according to the recipe. The functional module may be a detection module required for detecting the product to be detected and directly controlled by the PLC, for example, including but not limited to a servo mechanism, a robot, a stepper motor, a frequency converter, etc. Upon receiving the verification result returned by the monitoring terminal, the PLC may further adjust the configuration parameters of each functional module according to the recipe, for example, adjusting the servo parameters, the robot parameters, the stepper motor parameters, the frequency converter parameters, the functional parameters, etc., so as to realize the rapid switching of the recipe without manual intervention.
[0051] In an exemplary embodiment, in step 204, sending the recipe corresponding to the recipe identifier to the upper computer may specifically include: searching for the recipe corresponding to the recipe identifier in a power-off retentive register, and sending the recipe to the upper computer. The power-off retentive register may be a register inside the PLC for storing recipe data. In this embodiment, in order to prevent recipe data loss caused by abnormal power failure of the device, the PLC may use a power-off retentive register to store recipe data, thereby improving the security of recipe data storage.
[0052] In an exemplary embodiment, Figure 3 As shown, in step 202, before receiving the recipe switching instruction, the above method may further include:
[0053] Step 302: Obtain product information of the product to be tested.
[0054] The product information may include the product name of the product to be detected, and the product information may also include the attribute information of the product to be detected. For example, the attribute information may be the size, serial number, etc. of the product. Specifically, when the type of the detected product changes, the user may first send the product information of the product to be detected that needs to be replaced to the PLC based on human-computer interaction, and the PLC then obtains the product information of the product to be detected.
[0055] Step 304: whether a formula corresponding to the product name is found.
[0056] Specifically, the PLC searches for a formula corresponding to the product name in a power-off retention register. If the corresponding formula is found, step 306 is executed; if the corresponding formula is not found, step 308 is executed.
[0057] Step 306, obtain the recipe identifier of the recipe and return.
[0058] Specifically, when the PLC finds a formula, it means that the formula corresponding to the product name of the product to be detected already exists, so the formula identifier of the formula is obtained and returned. Then, the user can initiate a formula switching instruction according to the formula identifier returned by the PLC, making the switching of formulas more convenient.
[0059] Step 308: Establish a formula of the product to be tested based on the attribute information of the product to be tested, and generate a formula identifier of the formula.
[0060] Specifically, if the PLC fails to find a formula, it means that there is no formula corresponding to the product name of the product to be tested. Therefore, the formula of the product to be tested can be established according to the attribute information of the product to be tested, and the formula identification of the formula can be generated. For example, for a new product that is tested online for the first time, if there is no corresponding formula, a new formula can be created according to the attribute information of the product, and the formula identification of the formula can be generated.
[0061] Step 310: store the formula of the product to be tested and the mapping relationship between the formula, the product name and the formula identifier in a power-off retention register.
[0062] Specifically, after generating the formula corresponding to the product to be tested based on the above steps, in order to facilitate the subsequent direct call of the formula, the formula and the mapping relationship between the formula and the product name and formula identifier can also be stored in a power-off retention register. On the one hand, it can improve the utilization rate of the formula, and on the other hand, it can realize the rapid switching of the formula.
[0063] In an exemplary embodiment, in step 308, a formula of the product to be tested is established based on the attribute information of the product to be tested. Specifically, the parameter configuration of each functional module can be determined based on the attribute information of the product to be tested, and the formula of the product to be tested is generated based on the parameter configuration of each functional module, thereby completing the establishment of the formula of the product to be tested.
[0064] In an exemplary embodiment, in step 308, establishing a formula of the product to be detected according to the attribute information of the product to be detected may further include: searching for a historical formula matching the attribute information of the product to be detected in a power-off retention register; copying the historical formula, and establishing a formula of the product to be detected according to the copied historical formula. The historical formula is an existing formula stored in the power-off retention register.
[0065] Due to the large number of product types, for example, in the case of display screens, there are display screens of the same size but from different manufacturers, so their product names are different, but the configuration parameters used by the functional modules when testing them may be the same or similar. Based on this, in order to save the time of setting the parameter configuration of the functional modules one by one, it is also possible to search for a historical formula that matches the product to be tested in the power-off retention register based on the attribute information of the product to be tested, and then copy the historical formula, and establish the formula of the product to be tested based on the copied historical formula, thereby making the establishment of the formula more convenient.
[0066] In one scenario, after copying the historical recipe, the copied historical recipe can be modified based on the actual situation of the product to be tested. For example, the specific configuration parameters of a functional module can be modified, added or deleted, and the recipe of the product to be tested can be established based on the modified recipe to improve the efficiency of formula establishment.
[0067] In an exemplary embodiment, the method may further include: upon receiving a recipe deletion instruction, sending a command deletion request to the monitoring terminal, and upon receiving a request returned by the monitoring terminal, deleting the recipe and mapping relationship corresponding to the recipe identifier and product name from the power-off retention register. The recipe deletion instruction includes the recipe identifier of the recipe to be deleted and the corresponding product name. The command deletion request is a request for instructing the monitoring terminal to confirm the recipe deletion instruction.
[0068] In this embodiment, when a certain product has been abandoned and is no longer produced, or when the user creates a new recipe incorrectly, the user can initiate a recipe deletion instruction to the PLC based on human-computer interaction, and the instruction carries the corresponding recipe identifier and product name. In order to avoid recipe deletion errors caused by user misoperation, the PLC sends an instruction deletion request to the monitoring terminal when receiving the recipe deletion instruction, so that the monitoring terminal can verify and confirm the recipe deletion instruction. And when the verification passes, the verification result of the request passing is returned to the PLC. When the PLC receives the request passing returned by the monitoring terminal, it deletes the recipe and mapping relationship corresponding to the recipe identifier and product name from the power-off retention register. In this way, orderly management of recipe data in the power-off retention register is realized.
[0069] In one scenario, after the monitoring terminal verifies and confirms the recipe deletion instruction, and if the verification fails, it returns a verification result of request failure to the PLC. When the PLC receives the request failure returned by the monitoring terminal, it can generate an audible and visual alarm to remind the user that the current operation may be an error operation, thereby avoiding recipe deletion errors caused by user error operations.
[0070] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0071] Based on the same inventive concept, the embodiment of the present application also provides a recipe switching device for implementing the recipe switching method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more recipe switching device embodiments provided below can refer to the limitations on the recipe switching method above, and will not be repeated here.
[0072] In an exemplary embodiment, Figure 4 As shown, a recipe switching device is provided, wherein a recipe is a set of configuration parameters used by multiple functional modules when performing product detection. The recipe switching device may specifically include: a request sending module 402, a recipe sending module 404, a feedback receiving module 406 and a recipe switching module 408, wherein:
[0073] The request sending module 402 is used to send an instruction verification request to the monitoring terminal when receiving a recipe switching instruction, wherein the recipe switching instruction includes a product name of the product to be detected and a recipe identifier of the recipe to be switched; the instruction verification request is used to instruct the monitoring terminal to verify the recipe switching instruction according to the monitoring information;
[0074] The recipe sending module 404 is used to send the recipe corresponding to the recipe identifier to the host computer when receiving the verification result returned by the monitoring terminal, so as to instruct the host computer to adjust the configuration parameters according to the recipe;
[0075] A feedback receiving module 406 is used to receive parameter adjustment feedback information returned by the host computer, wherein the parameter adjustment feedback information includes the configuration parameters adjusted by the host computer;
[0076] The recipe switching module 408 is configured to return a message indicating successful recipe switching in response to the recipe switching instruction when it is determined that the adjusted configuration parameters in the parameter adjustment feedback information match the recipe corresponding to the recipe identifier.
[0077] In an exemplary embodiment, the apparatus further comprises an alarm module, which is used to return an audible and visual alarm when it is determined that the configuration parameters in the parameter adjustment feedback information do not match the recipe corresponding to the recipe identifier.
[0078] In an exemplary embodiment, the alarm module is further configured to: upon receiving a verification failure result returned by the monitoring terminal, return an audible and visual alarm.
[0079] In an exemplary embodiment, the above-mentioned device also includes a query module, which is used to obtain product information of the product to be detected before receiving a recipe switching instruction, wherein the product information includes the product name of the product to be detected; search for the formula corresponding to the product name in a power-off retention register; and when the formula is found, obtain the formula identifier of the formula and return it.
[0080] In an exemplary embodiment, the product information also includes attribute information of the product to be detected, and the query module is further used to: if the formula is not found, establish the formula of the product to be detected according to the attribute information of the product to be detected, and generate a formula identification of the formula.
[0081] In an exemplary embodiment, the apparatus further comprises a storage module for storing the formula of the product to be detected and the mapping relationship between the formula, the product name and the formula identifier in the power-off retention register.
[0082] In an exemplary embodiment, the above-mentioned device also includes a copy module, which is used to search the power-off retention register for a historical formula that matches the attribute information of the product to be detected; copy the historical formula, and establish the formula of the product to be detected based on the copied historical formula.
[0083] In an exemplary embodiment, the recipe sending module is further used to: search for a recipe corresponding to the recipe identifier in a power-off retention register, and send the recipe to the host computer.
[0084] In an exemplary embodiment, the above-mentioned device also includes a deletion module, which is used to: when receiving a recipe deletion instruction, send an instruction deletion request to the monitoring terminal, and the recipe deletion instruction includes the recipe identifier of the recipe to be deleted and the corresponding product name; when receiving the request returned by the monitoring terminal, delete the recipe and the mapping relationship corresponding to the recipe identifier and the product name from the power-off retention register.
[0085] Each module in the above recipe switching device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0086] In an exemplary embodiment, an electronic device is provided. The electronic device may be a PLC, and its internal structure diagram may be as follows: Figure 5As shown. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a recipe switching method is implemented. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the electronic device casing, or an external keyboard, touchpad or mouse.
[0087] Those skilled in the art will understand that Figure 5 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0088] In an exemplary embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0089] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0090] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0091] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0092] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0093] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0094] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A recipe switching method, characterized in that: The recipe is a collection of configuration parameters used by multiple functional modules when performing product testing. The method includes: When receiving a recipe switching instruction, sending an instruction verification request to the monitoring terminal, the recipe switching instruction including the product name of the product to be detected and the recipe identifier of the recipe to be switched; the instruction verification request is used to instruct the monitoring terminal to verify the recipe switching instruction according to the monitoring information; When receiving the verification result returned by the monitoring terminal, sending the recipe corresponding to the recipe identifier to the host computer to instruct the host computer to adjust the configuration parameters according to the recipe; Receiving parameter adjustment feedback information returned by the host computer, wherein the parameter adjustment feedback information includes the configuration parameters adjusted by the host computer; When it is determined that the adjusted configuration parameters in the parameter adjustment feedback information match the recipe corresponding to the recipe identifier, a message indicating successful recipe switching is returned in response to the recipe switching instruction.
2. The method according to claim 1, characterized in that: The method further comprises: When it is determined that the configuration parameters in the parameter adjustment feedback information do not match the recipe corresponding to the recipe identifier, an audible and visual alarm is returned.
3. The method according to claim 1, characterized in that The method further comprises: When receiving the verification failure result returned by the monitoring terminal, an audible and visual alarm is returned.
4. The method according to claim 1, characterized in that: Before receiving the recipe switching instruction, the method further includes: Acquire product information of the product to be detected, wherein the product information includes the product name of the product to be detected; Searching for a formula corresponding to the product name in a power-off retention register; When the recipe is found, the recipe identifier of the recipe is obtained and returned.
5. The method according to claim 4, characterized in that The product information also includes attribute information of the product to be detected, and the method further includes: In the case that the formula is not found, a formula of the product to be detected is established according to the attribute information of the product to be detected, and a formula identifier of the formula is generated.
6. The method according to claim 5, characterized in that The method further comprises: The formula of the product to be detected and the mapping relationship between the formula, the product name and the formula identifier are stored in the power-off retention register.
7. The method according to claim 5, characterized in that The step of establishing a formula of the product to be detected according to the attribute information of the product to be detected comprises: Searching the power-off retention register for a historical formula that matches the attribute information of the product to be detected; The historical formula is copied, and the formula of the product to be tested is established according to the copied historical formula.
8. The method according to claim 1, characterized in that The sending of the recipe corresponding to the recipe identifier to the upper computer includes: The recipe corresponding to the recipe identifier is searched in a power-off retention register, and the recipe is sent to the host computer.
9. The method according to claim 1, characterized in that: The method further comprises: When receiving a recipe deletion instruction, sending an instruction deletion request to the monitoring terminal, wherein the recipe deletion instruction includes a recipe identifier of the recipe to be deleted and a corresponding product name; When receiving a request approval signal returned by the monitoring terminal, the formula and the mapping relationship corresponding to the formula identifier and the product name are deleted from the power-off retention register.
10. A recipe switching device, characterized in that: The recipe is a collection of configuration parameters used by multiple functional modules when performing product testing. The device includes: A request sending module, configured to send an instruction verification request to a monitoring terminal upon receiving a recipe switching instruction, wherein the recipe switching instruction includes a product name of a product to be detected and a recipe identifier of a recipe to be switched; the instruction verification request is used to instruct the monitoring terminal to verify the recipe switching instruction according to monitoring information; A recipe sending module, configured to send a recipe corresponding to the recipe identifier to a host computer upon receiving a verification result returned by the monitoring terminal, so as to instruct the host computer to adjust configuration parameters according to the recipe; A feedback receiving module, used for receiving parameter adjustment feedback information returned by the host computer, wherein the parameter adjustment feedback information includes the configuration parameters adjusted by the host computer; The recipe switching module is used to return a message indicating successful recipe switching in response to the recipe switching instruction when it is determined that the adjusted configuration parameters in the parameter adjustment feedback information match the recipe corresponding to the recipe identifier.
11. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
