Device simulation method, device, computer device and storage medium
By constructing action and material data in the equipment design stage to perform cyclic simulations, the operating efficiency of automatic needle dispensing and needle backing equipment is evaluated, which solves the problem of unpredictable performance after equipment design in the existing technology, and achieves efficient use of resources and design solutions. optimization.
Patent Information
- Application Number
- CN202410440828.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-12
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-04-12
AI Technical Summary
Existing designs of automatic needle dispensing and return needle equipment lack efficiency evaluation methods in the design stage, resulting in equipment that may not be able to achieve expected performance after assembly, resulting in a waste of manpower and material resources.
Provides an equipment simulation method that performs cycle simulation to evaluate equipment operation efficiency by constructing action data and material data of mechanism operation, including an action data construction module, a material data determination module, a cycle simulation module and an equipment operation efficiency determination module, which can The equipment design phase evaluates the operational efficiency of the equipment.
The equipment simulation method can evaluate the operating efficiency of the equipment during the design phase, avoid resource waste due to lower efficiency than expected, and improve the optimization and feasibility of the design plan.
Smart Images

Figure CN118228505B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data simulation technology, and in particular to a device simulation method, apparatus, computer equipment, storage medium and computer program product. Background Art
[0002] At present, in the PCB mechanical drilling industry, each PCB board requires multiple different types of drill bits for drilling. Before processing the PCB board, the required type of drill bits needs to be configured (matching needles). After processing, the configured drill bits need to be put back into the material warehouse according to the model (returning needles). The matching and returning of drill bits were mainly done manually at the beginning. Due to the wide variety of drill bit models and the different quantities required for different models, the process of matching and returning drill bits is time-consuming and labor-intensive. In order to solve the problem of time-consuming and labor-intensive manual matching and returning needles, many institutions have developed their own automatic matching and returning needle equipment to reduce the labor intensity of operators and achieve cost reduction and efficiency improvement.
[0003] In traditional technology, the design schemes of automatic needle-dispensing and needle-returning equipment are all designed based on design experience. The pros and cons of the design schemes of automatic needle-dispensing and needle-returning equipment need to be evaluated after the equipment is put into use, and there is a lack of methods to measure the pros and cons of the design in the design stage.
[0004] However, if the performance evaluation of the equipment fails to meet expectations after the equipment is assembled, the assembled equipment may not be put into use, resulting in a waste of manpower and material resources. Summary of the invention
[0005] Based on this, it is necessary to provide an equipment simulation method, device, computer equipment, computer-readable storage medium and computer program product that can evaluate equipment efficiency in the design phase in response to the above technical problems.
[0006] In a first aspect, the present application provides a device simulation method. The method comprises:
[0007] According to the operation mode of the mechanism in the equipment and the station design data of the equipment, construct the action data of the mechanism operation; the action data includes the execution conditions of each action;
[0008] Determine the material data related to the target task;
[0009] Performing cyclic simulation according to a preset period, during each simulation, executing each action according to the material data and the execution condition, and updating the material data when the material update condition is met;
[0010] If it is determined based on the updated material data that the task end conditions have been met, the simulation will be stopped after all actions have been executed;
[0011] The equipment operating efficiency is determined based on the time taken for the cycle simulation and the quantity of materials involved in the target task.
[0012] In one embodiment, the action data further includes the action time of each action, and the executing each action according to the material data and the execution condition includes:
[0013] According to the material data and the execution conditions, the actions to be executed are determined from the unexecuted actions, and the actions to be executed are executed; based on the preset cycle, the running time required for the executed actions is updated; wherein the running time initially required for the executed actions is the corresponding action time; if the running time required for any executed action is zero, the action is updated to an unexecuted action.
[0014] In one embodiment, the execution condition includes a scheduling logic and an avoidance logic, and the determining of the to-be-executed action from the unexecuted actions according to the material data and the execution condition includes:
[0015] According to the material data and the scheduling logic, a target action is determined from unexecuted actions; an execution signal is sent to the target action, and the action time of the target action is used as the initial required running time; according to the avoidance logic, the actions to be executed that meet the running conditions are screened out from the target actions that receive the execution signal.
[0016] In one embodiment, each mechanism corresponds to an operation matrix, the operation matrix includes an action operation flag and an operation time, and the method further includes:
[0017] When any action changes from unexecuted to executed, the action running flag in the running matrix is updated; the updating of the running time required for the executed action includes: updating the running time required in the running matrix corresponding to the executed action.
[0018] In one embodiment, the target task is a needle matching task; after determining the material data related to the target task, the method further includes:
[0019] According to the needle matching task and the material data, detect whether the material meets the requirements of the needle matching task; if the material meets the requirements of the needle matching task, execute the cyclic simulation steps according to the preset period; if the material does not meet the requirements of the needle matching task, determine the missing material information based on the material data and the needle matching task.
[0020] In one embodiment, the step of constructing the action data of the mechanism operation according to the operation mode of the mechanism in the device and the station design data of the device includes:
[0021] According to the operation mode of the mechanism in the equipment, the actions of each mechanism of the equipment during operation and the execution conditions corresponding to each action are determined; according to the workstation design data of the equipment, the motor speed and cylinder speed of the mover involved in each action, the action time corresponding to each action is determined; according to each action, the execution conditions corresponding to each action and the action time corresponding to each action, the action data of the mechanism operation are constructed.
[0022] In a second aspect, the present application also provides a device simulation apparatus. The apparatus comprises:
[0023] An action data construction module, used to construct action data of the mechanism operation according to the operation mode of the mechanism in the device and the station design data of the device; the action data includes the execution conditions of each action;
[0024] A material data determination module is used to determine the material data related to the target task;
[0025] A cyclic simulation module, used for performing cyclic simulation according to a preset period, executing each action according to the material data and the execution condition during each simulation, and updating the material data when the material update condition is met;
[0026] The simulation completion judgment module is used to stop the simulation after all actions are executed if it is determined based on the updated material data that the task end conditions have been met;
[0027] The equipment operation efficiency determination module is used to determine the equipment operation efficiency based on the time consumption of the cycle simulation and the quantity of materials involved in the target task.
[0028] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0029] According to the operation mode of the mechanism in the equipment and the workstation design data of the equipment, the action data of the mechanism operation is constructed; the action data includes the execution conditions of each action; the material data related to the target task is determined; a cyclic simulation is performed according to a preset period, and in each simulation process, each action is executed according to the material data and the execution conditions, and the material data is updated when the material update conditions are met; if it is determined based on the updated material data that the task end conditions are met, the simulation is stopped after all actions are executed; the equipment operation efficiency is determined based on the time consumed by the cyclic simulation and the number of materials involved in the target task.
[0030] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0031] According to the operation mode of the mechanism in the equipment and the workstation design data of the equipment, the action data of the mechanism operation is constructed; the action data includes the execution conditions of each action; the material data related to the target task is determined; a cyclic simulation is performed according to a preset period, and in each simulation process, each action is executed according to the material data and the execution conditions, and the material data is updated when the material update conditions are met; if it is determined based on the updated material data that the task end conditions are met, the simulation is stopped after all actions are executed; the equipment operation efficiency is determined based on the time consumed by the cyclic simulation and the number of materials involved in the target task.
[0032] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0033] According to the operation mode of the mechanism in the equipment and the workstation design data of the equipment, the action data of the mechanism operation is constructed; the action data includes the execution conditions of each action; the material data related to the target task is determined; a cyclic simulation is performed according to a preset period, and in each simulation process, each action is executed according to the material data and the execution conditions, and the material data is updated when the material update conditions are met; if it is determined based on the updated material data that the task end conditions are met, the simulation is stopped after all actions are executed; the equipment operation efficiency is determined based on the time consumed by the cyclic simulation and the number of materials involved in the target task.
[0034] The above-mentioned equipment simulation method, device, computer equipment, storage medium and computer program product, by constructing the action data of the mechanism operation according to the operation mode of the mechanism in the equipment and the workstation design data; the action data includes the execution conditions of each action; determine the material data related to the target task; perform cyclic simulation according to the preset cycle, and in each simulation process, execute each action according to the material data and the execution conditions, and update the material data when the material update conditions are met; if it is determined based on the updated material data that the task end conditions are met, then stop the simulation after all actions are executed; determine the equipment operation efficiency based on the time consumed by the cyclic simulation and the number of materials involved in the target task. The operation action and material conditions of the equipment are all constructed through data. Therefore, during the cyclic simulation, it is only necessary to simulate the equipment based on the action data and the material data to obtain the operation efficiency of the equipment. Since the construction of the equipment action data can be completed according to the design scheme of the equipment, the operation efficiency of the designed equipment can be determined by the equipment simulation method of this application during the design stage of the equipment, which helps to evaluate the design scheme and avoid the situation where the designed equipment cannot be put into use because the efficiency cannot reach the expected level. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 An equipment layout diagram for an equipment design;
[0036] Figure 2 A schematic diagram of a flow chart of a device simulation method in an embodiment;
[0037] Figure 3 Equipment layout diagram for another equipment design;
[0038] Figure 4 Equipment layout diagram for another equipment design;
[0039] Figure 5 A partial simulation flow chart of a device simulation method in an embodiment;
[0040] Figure 6 is a structural block diagram of a device simulation apparatus in an embodiment;
[0041] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0042] 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.
[0043] The device simulation solution of this application is applied to needle matching and needle return equipment. In order to make it easier to understand the method of this application, Figure 1 The design of the automatic needle matching and needle return equipment process is further explained:
[0044] When the device is used as a needle matching machine, the needle matching process is as follows:
[0045] Step 1: Start needle matching, put on the empty material box, and the C mover grabs a row of empty material boxes from station 4 and places them on the rotating station.
[0046] Step 2: During the outbound process, if the ingredients to be prepared are stored in station 1, the stacker grabs the ingredients to be prepared from station 1 and moves them to station 2, and then mover A moves the materials from station 2 to station 3.
[0047] Step 3: During the needle matching process, the B mover pulls out the required drill needle from station 3, and then inserts it into the corresponding hole position of each material box in the rotating station. This process is repeated until all the needles to be matched are completed.
[0048] Step 4: During the unloading process, the C mover grabs the needle-equipped material box from the rotating station to station 4.
[0049] Step 5: After the above steps 1-4, the needle matching of one column of material boxes can be completed. If there are multiple columns of material boxes in this operation order, repeat the above steps 1-4 until the needle matching of all material boxes is completed.
[0050] It should be noted that the above steps will be carried out simultaneously without interference, especially steps 2 and 3. As long as there are materials to be matched in station 3, there will be action instructions in step 3, and there is no need to wait for all the actions in step 2 to be completed. Each station has a corresponding capacity. Station 1 is used for storage, and the material box will be placed for a long time. Station 2 is only used for transit, and the material box will be transferred immediately. Station 3 is used as a cache, and the material box will be placed in it for a short period of time and the needles will be matched. If station 3 is full of material boxes, and there are material boxes that need to be moved to station 3 at the same time, a return to the warehouse process will be added in step 2: A mover will move the material box in station 3 that no longer needs to be matched with needles to station 2, and then the stacker will move the material box on station 2 back to station 1.
[0051] In addition, in a continuous needle matching process, there may be multiple columns, and the corresponding C action needs to be loaded and unloaded multiple times. Each needle matching process only matches needles in one column. If the needle matching of this column is completed, the material is unloaded, and then the needles of the next column are matched. There are multiple material boxes in one column, and the tasks to be matched between different columns may be different. At the same time, the number of material boxes may also be inconsistent, depending on the requirements of the entire needle matching work order.
[0052] Needle return is the reverse process of needle matching. When the device is used as a needle matching machine, the needle return process is as follows:
[0053] Step 1: Start to return the needle and put the material to be returned. The C mover grabs a row of boxes to be returned from station 4 and places them on the rotating station.
[0054] Step 2: During the outbound process, the stacker grabs the empty box from station 1 and moves it to station 2, and then the A mover moves the empty box from station 2 to station 3.
[0055] Step 3: In the needle return process, the B mover pulls out the drill needle that needs to be returned from the rotating station, and then inserts it into the corresponding hole position of each material box in station 3. Repeat this process until all the needles to be returned are completed.
[0056] Step 4: During the unloading process, the C mover grabs the empty material box that has been returned to the workstation from the rotating workstation to workstation 4;
[0057] Step 5: After the above steps 1-4, the back stitching of one row of material boxes can be completed. If there are multiple rows of material boxes, repeat the above steps 1-4 until the back stitching of all material boxes is completed.
[0058] Among them, the basic logic of needle return is consistent with that of configuration. In the needle matching process, the material box in station 1 is generally full at the beginning. As the needle matching progresses, the number of drill needles in the material box decreases; in the needle return process, the material box in station 1 is generally empty at the beginning. As the needle return progresses, the number of drill needles in the material box increases; the mechanical structure of the needle matching and needle return equipment is exactly the same. The same equipment can be used as both a needle matching machine and a needle return machine, but it cannot perform needle return tasks while performing needle matching tasks. In general, two machines are used for needle matching and needle return tasks respectively.
[0059] In one embodiment, Figure 2 As shown, a device simulation method is provided. This embodiment takes the method applied to a terminal as an example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0060] Step 202, constructing the action data of the mechanism operation according to the operation mode of the mechanism in the equipment and the station design data of the equipment; the action data includes the execution conditions of each action.
[0061] Among them, the device can be a needle matching device or a needle return device. The needle return device or needle matching device includes multiple mechanisms, and each mechanism is a driving mechanism for the action of the device. The operation mode of the mechanism in the device includes the action content, action logic and action time of each mechanism action operation. The action data can be a data list that records the action name, execution condition and action time of each action of the mechanism. The execution condition of the action refers to the condition that needs to be met when executing the action. The execution conditions of each action are different. The execution conditions may include the scheduling logic of the action and the avoidance logic between each action. The device can be a needle matching device or a needle return device. When the device is working, multiple workstations are set for placing drill materials for the device to match needles or return needles. Specifically, the workstations of the device may include a cache, a transfer table, a cache table, a needle matching table and a loading table. The layout mode of the mechanism in the device refers to the layout plan of each workstation of the device. The design plan of the mechanism in the device includes the design parameters and assembly position of each workstation. The station design data of the device can be a structure containing design information such as the capacity of each station, the size of the station and the installation position of the station. The station capacity specifically refers to the number of material boxes that can be placed at each station; the station size includes the distance information between each station.
[0062] Specifically, the terminal obtains the action name, execution condition and action time of each action performed by the mechanism according to the layout of the mechanism in the device, the action content, action logic and action time of the device action, and uses the action name, execution condition and action time of each action as action data.
[0063] As an example, Figure 1 Taking the equipment layout diagram shown in the figure as an example, the action data can be shown in the following Table 1:
[0064]
[0065] Table 1 Action data diagram
[0066] It should be noted that each of the above action steps starts from its corresponding initial position, grabs the material and places it in the corresponding position, and then returns to the initial position. Generally, the initial position is a safe position near the material pick-up and placement position. Therefore, each action has two states: go and return. If the go state is to take the material, the return state is to put the material. For type B actions and type C actions, their execution conditions affect each other. If both actions need to be executed at the same time and the motion ranges overlap, the specific execution logic is: if type B actions and type C actions are in a state of one go and one return at this time, the two move in the same direction and can act in parallel; if type B actions and type C actions are both in a state of going at this time, the two move in opposite directions, and the motion ranges overlap, then type B actions are executed first, and type C actions enter waiting.
[0067] In a specific embodiment, the step of constructing the workstation design data includes: constructing the design data of each workstation according to the layout and design scheme of the mechanism in the equipment.
[0068] Step 204, determine the material data related to the target task.
[0069] The target task can be a needle return task or a needle matching task, and the material data is used to represent the material information in the warehouse and the information of the needle matching or needle return material. The material is placed in a material box, and the material information includes the number of the material box, the model of the material, the quantity of the material, etc.
[0070] Specifically, the terminal determines the material data related to the target task according to the task material information in the target task. When the target task is a needle return task, the task material information is the material quantity and material model required to complete the needle return task, and the material data can be the material quantity and material model required to complete the needle return task; when the target task is a needle matching task, the task material information is the material quantity and material model required to complete the needle matching task, and the material data must include the material quantity and material model required to complete the needle matching task.
[0071] Step 206, performing cyclic simulation according to a preset period, during each simulation, executing various actions according to the material data and execution conditions, and updating the material data when the material update conditions are met.
[0072] Among them, simulation refers to the terminal simulation device host computer sending signals to the electrical program and the operating logic of the electrical program. Cyclic simulation refers to multiple simulations. In actual equipment design, the electrical program can be designed to judge the action status every 2 milliseconds when the equipment is running. During the simulation process, the preset cycle can be a value larger than the designed electrical program judgment cycle to improve the efficiency of the simulation. For example, the preset cycle can be 100 milliseconds. Whether the material is updated is related to the action performed. When updating the material data, the update can be completed by changing the material data.
[0073] Specifically, the terminal performs cyclic simulation according to the preset period and builds an action operation list. During each simulation, the action operation list is updated according to the material data and execution conditions to simulate the execution process of each action of the equipment, and the material data is updated when the material update conditions are met. The material update condition refers to the relevant action of the mechanism causing the quantity of the material to change, and the material data needs to be updated at this time.
[0074] As an example, Figure 1Taking the equipment design shown as an example, when the stacker grabs the ingredients to be prepared from station 1 and moves them to station 2, the action satisfies the material update condition when the action starts to be executed. At this time, the data of station 1 in the material data needs to be updated according to the model and quantity of the grabbed materials; the action satisfies the material update condition when the action is completed. At this time, the data of station 2 in the material data needs to be updated according to the model and quantity of the grabbed materials.
[0075] Step 208: If it is determined based on the updated material data that the task end condition is met, the simulation is stopped after all actions are executed.
[0076] Specifically, when the updated material data indicates that the materials starting from the starting point have accumulated to meet the task requirements of the target task, the simulation is stopped after all actions are completed. Whether the action is completed can be determined based on the constructed action running list.
[0077] It should be noted that since the material data will be updated when the relevant actions begin to be executed, there may be situations where the relevant actions are not completed after the data is updated. Therefore, when the updated material data indicates that the materials starting from the starting point have accumulated to meet the task requirements of the target task, it is also necessary to determine whether all actions have been executed.
[0078] Step 210, determining the equipment operation efficiency based on the time consumption of the cycle simulation and the quantity of materials involved in the target task.
[0079] The time consumption of the cycle simulation refers to the total time consumption of the cycle simulation, which can be calculated according to the preset cycle and the number of simulations. Specifically, the terminal calculates the time consumption of the cycle simulation according to the preset cycle and the number of simulations, obtains the quantity of materials from the target task, and calculates the equipment operation efficiency according to the time consumption of the cycle simulation and the quantity of materials.
[0080] As an example, the mathematical expression for equipment operating efficiency is as follows:
[0081]
[0082]
[0083] in, For equipment operation efficiency, is the quantity of the material, is the simulation time, k is the number of drill bit material specifications of the target task, is the drill bit material required for the i-th specification.
[0084] The above-mentioned equipment simulation method constructs the action data of the mechanism operation according to the operation mode of the mechanism in the equipment and the station design data of the equipment; the action data includes the execution conditions of each action; determines the material data related to the target task; performs cyclic simulation according to the preset cycle, and in each simulation process, executes each action according to the material data and the execution conditions, and updates the material data when the material update conditions are met; if it is determined based on the updated material data that the task end conditions are met, the simulation is stopped after all actions are executed; the equipment operation efficiency is determined based on the time consumed by the cyclic simulation and the number of materials involved in the target task. The operation action and material conditions of the equipment are all constructed through data. Therefore, during the cyclic simulation, the operation efficiency of the equipment can be obtained by simulating the equipment based on the action data and material data. Since the construction of the equipment action data can be completed according to the design plan of the equipment, the operation efficiency of the designed equipment can be determined by the equipment simulation method of this application during the design stage of the equipment, which helps to evaluate the design plan and avoid the situation where the designed equipment cannot be put into use because the efficiency cannot reach the expected level.
[0085] In one embodiment, the action data also includes the action time of each action, and each action is executed according to the material data and the execution condition, including:
[0086] According to the material data and execution conditions, the actions to be executed are determined from the unexecuted actions, and the actions to be executed are executed; based on the preset cycle, the running time required for the executed actions is updated; wherein, the running time initially required for the executed actions is the corresponding action time; if the running time required for any executed action is zero, the action is updated to an unexecuted action.
[0087] Among them, in the action cycle simulation, the action includes two states: being executed and not being executed. The action can be executed when it is in the not being executed state and the execution conditions are met. It should be noted that once the action is in execution, it cannot be interrupted in the middle. Only when the action is completed will the state of the action change from being executed to not being executed. The running time is the time required for the action to run from the current running state to completion, and the action time is the time required for the action to run from the start to completion.
[0088] Specifically, the terminal determines the pending actions that meet the execution conditions from the unexecuted actions based on the material data and the execution conditions, and executes the pending actions; based on the preset cycle, the running time required for the executed actions is updated; wherein the initial running time required for the executed actions is the corresponding action time; if the running time required for any executed action is zero, the execution status of the action is updated to not executed.
[0089] As an example, based on a preset period, the running time required for the executed action is updated, including: subtracting the preset period from the running time required for the executed action to obtain a new required motion time for the executed action. When the running time required for the executed action is zero, it indicates that the action is completed.
[0090] In this embodiment, the simulation of the device action is achieved by executing the actions that are not executed but meet the execution conditions and updating the running time required for the executed actions. By completing the simulation of the action by updating the running time of the action, the simulation cost of the simulation can be reduced.
[0091] In one embodiment, the execution condition includes a scheduling logic and an avoidance logic. According to the material data and the execution condition, the action to be executed is determined from the unexecuted actions, including:
[0092] According to the material data and scheduling logic, the target action is determined from the unexecuted actions; an execution signal is sent to the target action, and the action time of the target action is used as the initial required running time; according to the avoidance logic, the actions to be executed that meet the running conditions are screened out from the target actions that receive the execution signal.
[0093] Among them, each action has different scheduling logic and avoidance logic. Scheduling logic refers to the prerequisite for the execution of an action. Only when the scheduling logic is met can the execution signal be sent. With further research on needle matching and needle return equipment, the current needle matching and needle return equipment takes into account the operating efficiency of the equipment when designing. Each action can be run at the same time. Due to space limitations, there may be running conflicts between some actions when running at the same time. The avoidance logic is the control logic to avoid conflicts when the actions are in parallel. Before the target action is executed, it is necessary to determine whether the avoidance logic is met, that is, whether there is an action that conflicts with the action to be executed. If there is no action that conflicts with the action to be executed, it means that the avoidance logic is met and the target action can be executed.
[0094] Specifically, the terminal determines the target action that meets the scheduling logic from the unexecuted actions based on the material data and scheduling logic; sends an execution signal to the target action, and uses the action time of the target action as the initial required running time; and filters out the actions to be executed that meet the avoidance logic from the target actions that receive the execution signal based on the avoidance logic.
[0095] As an example, Figure 1 For example, when the horizontal direction is the y-axis, the two actions whose y-axis coordinates overlap when the movers are moving cannot be performed at the same time, and then it is determined that avoidance is required. Among them, the y-axis coordinates when the movers are moving can be calculated based on the required running time of the action.
[0096] As an example, according to the avoidance logic, the actions to be executed that meet the scheduling logic are filtered out from the target actions that receive the execution signal, including: determining whether the target action meets the corresponding avoidance logic, that is, determining whether there is an action that conflicts with the target action being executed; if no action that conflicts with the target action is being executed, the target action is filtered out as the action to be executed.
[0097] Furthermore, if there are two conflicting actions among the actions to be executed, one of the two actions to be executed is selected according to a preset order.
[0098] In this embodiment, the avoidance logic of each action is taken into consideration. When determining the action to be executed, not only the scheduling logic of each action is considered, but the avoidance logic of each action is further used as a part of the execution condition. In this way, the actions to be executed are selected for execution simulation, which can make the simulation process closer to the actual generation situation and improve the accuracy of the simulation.
[0099] In one embodiment, each mechanism corresponds to an operation matrix, the operation matrix includes an action operation flag and a required operation time, and the method further includes:
[0100] When any action changes from unexecuted to executed, the action running flag in the running matrix is updated; the running time required for the executed action is updated, including: updating the running time required in the running matrix corresponding to the executed action.
[0101] The operation matrix may also include an action number and a material box position. The action operation flag may indicate whether the action is running. The required operation time is the operation time required for the action to complete. The action number is the unique identifier of the action. The material box position refers to the position of the material box that needs to be grabbed for the action. It should be noted that in some actions, it may not be necessary to grab the material box, so the material box position can be 0.
[0102] Specifically, when any action changes from unexecuted to executed, the terminal changes the action running flag in the running matrix from an unexecuted flag to an executing flag; the running time required for the executed action is updated, including: in each loop simulation, the running time required in the running matrix corresponding to the executed action is updated by subtracting a preset period.
[0103] As an example, before the device simulation starts, an action operation matrix including all required actions is constructed according to the target task, action data and material data, and then each action in the action operation matrix is simulated and run in a loop according to the execution conditions, and during the loop simulation process, the actions with a required running time of 0 in the operation matrix are deleted, and the device simulation ends when the operation matrix is an empty matrix. It can be understood that during the device simulation process, if the action to be executed is not in the operation matrix, the action to be executed can also be added to the operation matrix.
[0104] In this embodiment, the operation status of the action is represented by the operation matrix of the action, and the operation status of the action is dynamically simulated by updating the required operation time in the operation matrix, so that the device action process can be simulated. The simulation of the action process can simulate the device more accurately to improve the accuracy of the simulation.
[0105] In one embodiment, the target task is a needle matching task; after determining the material data related to the target task, the method further includes:
[0106] According to the needle matching task and material data, check whether the material meets the requirements of the needle matching task; if the material meets the requirements of the needle matching task, execute the cyclic simulation steps according to the preset period; if the material does not meet the requirements of the needle matching task, determine the missing material information based on the material data and the needle matching task.
[0107] Among them, in actual scenarios, when the materials do not meet the requirements of the needle matching task, the staff can be prompted to replenish the stock based on the missing material information, so that the equipment's needle matching task can be quickly restored and the task completion efficiency can be improved.
[0108] In this embodiment, when the target task is a needle matching task, the material data is first tested. Only after ensuring that the material data is sufficient to complete the needle matching task, the equipment simulation is performed. This can avoid the situation where the needle matching task cannot be completed due to insufficient material data, thereby improving the efficiency and accuracy of the simulation.
[0109] In one embodiment, according to the operation mode of the mechanism in the equipment and the station design data, the action data of the mechanism operation is constructed, including:
[0110] According to the operation mode of the mechanism in the equipment, the actions of each mechanism of the equipment during operation and the corresponding execution conditions of each action are determined; according to the workstation design data, the motor speed and cylinder speed of the mover involved in each action, the action time corresponding to each action is determined; according to each action, the execution conditions corresponding to each action and the action time corresponding to each action, the action data of the mechanism operation is constructed.
[0111] As an example, the action time corresponding to each action is determined according to the motor speed and cylinder speed of the mover involved in each action in the layout method, including: determining the horizontal action distance and the vertical action distance of each action according to the workstation design data; determining the motor running time according to the horizontal action distance and the motor speed; determining the cylinder running time according to the vertical action distance and the cylinder speed; adding the motor running time and the cylinder running time to obtain the action time corresponding to each action.
[0112] As an example, the mathematical expression for the running time of a single motor can be as follows:
[0113] ,
[0114] in, is the running time of the motor, is the running distance of the motor, is the running distance of the motor, is the end point coordinate of the motor. It is the starting coordinate of the motor.
[0115] As an example, when multiple axes are running simultaneously, serial and parallel operations will coexist, and the mathematical expression for the total running time of all motors in a single mechanism can be as follows:
[0116]
[0117] in is the total motor time of this action of the mechanism, i represents the motor serial section, j represents each motor in each serial section, is the running time of motor j in paragraph i.
[0118] In this embodiment, the actions of each mechanism of the equipment during operation and the execution conditions corresponding to each action are determined according to the operating mode of the mechanism in the equipment; the action time corresponding to each action is determined according to the workstation design data of the equipment and the motor speed and cylinder speed of the mover involved in each action; the action data of the mechanism operation is constructed according to each action, the execution conditions corresponding to each action and the action time corresponding to each action. The action data constructed in this way can appropriately represent the execution logic and execution time of each action of the equipment, which is helpful to simulate the equipment.
[0119] In one embodiment, the device simulation method includes:
[0120] According to the operation mode of the mechanism in the equipment and the station design data of the equipment, the actions of each mechanism of the equipment during operation and the corresponding execution conditions of each action are determined; according to the motor speed and cylinder speed of the mover involved in each action in the layout mode, the corresponding action time of each action is determined; according to each action, the execution conditions corresponding to each action and the action time corresponding to each action, the action data of the mechanism operation is constructed. The execution conditions include scheduling logic and avoidance logic.
[0121] Determine the material data related to the target task; and build a corresponding operation matrix for each action based on the action data and material data. The operation matrix includes the action operation flag and the required operation time.
[0122] In some specific embodiments, when the target task is a needle matching task, after determining the material data related to the target task, it is also detected whether the material meets the requirements of the needle matching task based on the needle matching task and the material data; if the material meets the requirements of the needle matching task, the loop simulation step is executed according to the preset period; if the material does not meet the requirements of the needle matching task, the missing material information is determined based on the material data and the needle matching task. After the material meets the requirements of the needle matching task, it is calculated whether the cache material box needs to be used, and a label field is added to each material data in the material data. If the target task needs to use the corresponding material, the label field corresponding to the material is set to 1; for materials that are not needed for the target task, the label field corresponding to the material is set to 0. A NeedNum field is added to each material data in the material data. For any material corresponding to a label field of 1, the number of needles required is calculated, and the NeedNum field corresponding to the material is set to the number of needles required, and the NeedNum field of the corresponding material with a label field of 0 is set to 0.
[0123] Perform cyclic simulation according to the preset cycle. During each simulation, determine the unexecuted actions according to the operation matrix corresponding to each action, and determine the target action from the unexecuted actions according to the scheduling logic in the material data and execution conditions; send an execution signal to the target action, and update the running time required by the operation matrix corresponding to the target action to the action time of the target action; according to the avoidance logic, select the actions to be executed that meet the running conditions from the target actions that receive the execution signal, and execute the actions to be executed; based on the preset cycle, update the running time required for the operation matrix corresponding to the executed actions; if the running time required for any executed action is zero, update the motion flag of the operation matrix corresponding to the action to unexecuted. Among them, the action running flag can be represented by a number, for example, the action running flag 0 indicates unexecuted, and the action running flag 1 indicates executed.
[0124] As an example, the operation matrix of the action is [action number, material box position, action time, action operation flag], which can be , where A1 represents the number of the action, 3-5 represents the location of the material grabbed by action A1, 10 represents the running time required for the action is 10 seconds, and 1 represents that the action is being executed.
[0125] The operation matrix of each action is updated according to the execution conditions in the material data and action data, and the material data is updated when the material update conditions are met; if it is determined based on the updated material data that the task end conditions are met, the simulation is stopped when the action operation flags of the operation matrices corresponding to all actions indicate that they are to be executed; the equipment operation efficiency is determined based on the time consumed by the cycle simulation and the number of materials involved in the target task.
[0126] As an example, Figure 1 According to the actual operation status of the equipment layout diagram, the equipment simulation is performed according to the equipment simulation method of this application. Input design data: inventory capacity 1000; cache table capacity 50; needle matching table column number 2. Build each action time: stacker x, y, z axis motor movement speed 1000mm / s; transfer gantry (A mover) and needle matching gantry (B mover) x, y axis speed 1500mm / s; stacker cylinder time 0.4s / time; transfer gantry cylinder time 1.5s / time; needle matching gantry cylinder time 0.5s / time.
[0127] In the end, the average time taken for A1 action was 8.5s, and the average time taken for A2 action was 9s; the average time taken for negative movement of B1 and B2 actions was 3s, and the average time taken for positive movement of B1 and B2 actions was 3s; the average time taken for positive and negative movement of C action was 1.5s.
[0128] Based on the actual warehouse cache situation and the actual needle matching work order, the simulation calculation is as follows: a certain work order uses 50 specifications of drill needles, a total of 1,800 needles, and a total of 52 boxes of drill needles, of which 29 boxes of drill needles are located in the cache warehouse and 23 boxes of drill needles are located on the cache table. After the simulation is run, the running time is 1178s and the needle matching efficiency is 5704. Subsequently, the work order is actually run with the needle matching equipment, and the actual running time is 1136s, with an error of less than 5%, indicating that the equipment simulation method of this application has a low error and a good simulation effect.
[0129] The device simulation method of the present application can be applied to a variety of automatic needle matching and needle return equipment solutions. Figure 3 , Figure 4 For the other two needle matching schemes, Figure 3 , Figure 4 The automatic needle-dispensing equipment process of the design is briefly described.
[0130] Figure 3 The process of automatic needle matching equipment is as follows:
[0131] Step 1: Start needle matching, empty material box, the stacker grabs the empty material box from the buffer and moves it to the conveyor F, and then the conveyor F rotates forward to transport the empty material box to the end of the conveyor, and then the clamp 4 moves it to the conveyor D, and the conveyor D transports it to the set position.
[0132] Step 2: In the outbound process 1, the stacker grabs the ingredients to be mixed from the buffer and moves them to conveyor belt A. Then conveyor belt A rotates forward to transport the ingredients to be mixed to the end of the conveyor belt. Then the gripper 1 moves the ingredients to conveyor belt C. Conveyor belt C rotates forward to transport the ingredients to be mixed to the set position.
[0133] Step 3: During the needle matching process, the gripper mover 3 pulls out the required drill needles from the conveyor belt C, and then inserts them into the corresponding holes of each material box on the conveyor belt D. This process is repeated until all the needles for the material to be matched are completed.
[0134] Step 4: During the return process, conveyor belt C rotates forward to transport the no longer needed needle material box to the end of conveyor belt C, and then it is moved to conveyor belt B by gripper 2. Conveyor belt D transports it to the end of conveyor belt D, and finally it is grabbed back to the cache by the stacker.
[0135] Step 5: Repeat steps 1-4 until all the cartridges are equipped with needles.
[0136] Figure 4 The process of automatic needle matching equipment is as follows:
[0137] Step 1: Start needle matching, exchange material boxes, the stacker and the planetary line exchange material boxes on the transfer table, return the materials that do not need needle matching to the warehouse, and then take the materials that need needle matching out of the warehouse.
[0138] Step 2: Material box transportation, the planetary line rotates to transport each material box on the planetary line to the next position.
[0139] Step 3: Needle matching process 1, if the material box in the planetary line needle matching position is the material box to be matched, the clamping jaw mover 1 pulls out the required drill needle from the planetary line needle matching position, and then inserts it into the corresponding hole position of the rotary station 1, and the rotary station 1 rotates at the same time, and repeats this process until all the needles to be matched are completed.
[0140] Step 4: Needle matching process 2, the clamping jaw mover 2 pulls out the required drill needle from the rotating station 1, and then inserts it into the corresponding material box hole of the rotating station 2, and the rotating station 2 rotates at the same time.
[0141] Step 5: Repeat steps 1-4 until all the cartridges are equipped with needles.
[0142] pass Figure 2 The device simulation method shown is Figure 3 , Figure 4 The simulation results of the automatic needle matching solution are explained as follows:
[0143] As an example, Figure 3 The equipment layout diagram and operation flow are simulated according to the equipment simulation method of this application. Input design data: inventory capacity 1000; conveyor belt A, conveyor belt B capacity 5; conveyor belt C capacity 3; conveyor belt D capacity 12; conveyor belt F capacity 6. Build each action time: the movement speed of the stacker x, y, and z axis motors is set to 1000mm / s; the stacker cylinder time is set to 0.4s / time; the conveyor belt speed is set to 1.5s / box; the action rhythm of gripper 1, gripper 2, gripper 4, and gripper 5 is set to 1s / box; the movement speed of the gripper mover 3 motor is set to 800mm / s; the gripper mover 3 cylinder time is set to 0.6s / time.
[0144] Based on the actual warehouse cache situation and the actual needle matching work order, the simulation calculation is as follows: a certain work order uses 50 specifications of drill needles, a total of 1,800 needles, and a total of 53 boxes of drill needles. After the simulation is run, the running time is 3,756 seconds, and the needle matching efficiency is 1,725 needles / h.
[0145] As an example, Figure 4 The equipment layout diagram and operation flow are simulated according to the equipment simulation method of this application. Input design data: inventory capacity 1000; planetary line capacity 20; rotary station 1 capacity 4; rotary station 2 capacity 6; planetary line needle position is at position 15 of the planetary line. Build each action time: the movement speed of the stacker x, y, and z axis motors is set to 1000mm / s; the stacker cylinder time is set to 0.4s / time; the planetary line speed is set to 1.5s / box; the movement speed of the gripper mover 1 and gripper mover 2 motors is set to 800mm / s; the gripper mover 1 and gripper mover 2 cylinder time is set to 0.6s / time.
[0146] Based on the actual warehouse cache situation and the actual needle matching work order, the simulation calculation is as follows: a certain work order uses 50 specifications of drill needles, a total of 1,800 needles are matched, and a total of 53 boxes of drill needles are used. After the simulation is run, the running time is 2,166 seconds and the needle matching efficiency is 2,990 needles / h.
[0147] The present application can perform efficiency simulation on a design solution during the equipment design phase, thereby facilitating the evaluation of the design solution and avoiding the situation where the designed equipment cannot be put into use because the efficiency does not meet expectations. Figure 1 , Figure 3 and Figure 4 These are three typical automatic needle-matching and needle-returning equipment design solutions. There are other types of automatic needle-matching solutions in the industry, which are not listed here one by one. The simulation method of this application is used to compare the design solutions and layout simulations of various needle-matching and needle-returning equipment. It can be seen that Figure 1The design scheme of the device shown has the best needle matching efficiency. Of course, the simulation method of the present application is not only applicable to the design stage of the device, but also can be used to perform efficiency simulation when the device is put into use and before performing work order tasks.
[0148] In one embodiment, Figure 5 As shown, some simulation steps of the device simulation method include:
[0149] The simulation starts, and an execution signal is sent to the action that meets the scheduling logic based on the constructed action data and material data. It is determined whether the action that sends the execution signal meets the avoidance logic. If it meets the avoidance logic, the action is executed, and it is determined whether the needle matching is completed. If the needle matching is completed, the simulation ends. If the needle matching is not completed, the simulation is returned to send an execution signal to the action that meets the scheduling logic based on the constructed action data and material data to continue the simulation until the needle matching is completed.
[0150] It should be understood that, although the steps in the flowcharts involved in the above 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 is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may 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 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.
[0151] Based on the same inventive concept, the embodiment of the present application also provides a device simulation device for implementing the device simulation 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 device simulation device embodiments provided below can refer to the limitations on the device simulation method above, and will not be repeated here.
[0152] In one embodiment, Figure 6 As shown, a device simulation device is provided, including: an action data construction module 302, a material data determination module 304, a cycle simulation module 306, a simulation completion judgment module 308 and a device operation efficiency determination module 310, wherein:
[0153] The action data construction module 302 is used to construct the action data of the mechanism operation according to the operation mode of the mechanism in the device and the station design data of the device; the action data includes the execution conditions of each action;
[0154] A material data determination module 304 is used to determine material data related to the target task;
[0155] The cycle simulation module 306 is used to perform cycle simulation according to a preset period. During each simulation, each action is executed according to the material data and the execution condition, and the material data is updated when the material update condition is met;
[0156] A simulation completion judgment module 308 is used to stop the simulation after all actions are executed if it is determined based on the updated material data that the task end condition is met;
[0157] The equipment operation efficiency determination module 310 is used to determine the equipment operation efficiency based on the time consumption of the cycle simulation and the quantity of materials involved in the target task.
[0158] In one embodiment, the cycle simulation module 306 is further configured to:
[0159] According to the material data and execution conditions, the actions to be executed are determined from the unexecuted actions, and the actions to be executed are executed; based on the preset cycle, the running time required for the executed actions is updated; wherein, the running time initially required for the executed actions is the corresponding action time; if the running time required for any executed action is zero, the action is updated to an unexecuted action.
[0160] In one embodiment, the execution condition includes a scheduling logic and an avoidance logic, and the loop simulation module 306 is further configured to:
[0161] According to the material data and scheduling logic, the target action is determined from the unexecuted actions; an execution signal is sent to the target action, and the action time of the target action is used as the initial required running time; according to the avoidance logic, the actions to be executed that meet the running conditions are screened out from the target actions that receive the execution signal.
[0162] In one embodiment, each mechanism has a corresponding operation matrix, which includes an action operation flag and a required operation time. The cycle simulation module 306 is also used to:
[0163] When any action changes from unexecuted to executed, the action running flag in the running matrix is updated; and the running time required in the running matrix corresponding to the executed action is updated.
[0164] In one embodiment, the target task is a needle fitting task; the device simulation device further includes:
[0165] The material detection module is used to detect whether the material meets the requirements of the needle matching task based on the needle matching task and material data; if the material meets the requirements of the needle matching task, the cyclic simulation steps are executed according to the preset cycle; if the material does not meet the requirements of the needle matching task, the missing material information is determined based on the material data and the needle matching task.
[0166] In one embodiment, the action data construction module 302 is further configured to:
[0167] According to the operation mode of the mechanism in the equipment, the actions of each mechanism of the equipment during operation and the corresponding execution conditions of each action are determined; according to the station design data of the equipment, the motor speed and cylinder speed of the mover involved in each action, the action time corresponding to each action is determined; according to each action, the execution conditions corresponding to each action and the action time corresponding to each action, the action data of the mechanism operation is constructed.
[0168] Each module in the above-mentioned device simulation 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 a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0169] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data for device simulation. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a device simulation method is implemented.
[0170] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0171] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0172] According to the operation mode of the mechanism in the equipment and the workstation design data of the equipment, the action data of the mechanism operation is constructed; the action data includes the execution conditions of each action; the material data related to the target task is determined; a cyclic simulation is performed according to the preset period, and in each simulation, each action is executed according to the material data and the execution conditions, and the material data is updated when the material update conditions are met; if it is determined based on the updated material data that the task end conditions are met, the simulation is stopped after all actions are executed; the equipment operation efficiency is determined based on the time consumed by the cyclic simulation and the number of materials involved in the target task.
[0173] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0174] According to the material data and execution conditions, the actions to be executed are determined from the unexecuted actions, and the actions to be executed are executed; based on the preset cycle, the running time required for the executed actions is updated; wherein, the running time initially required for the executed actions is the corresponding action time; if the running time required for any executed action is zero, the action is updated to an unexecuted action.
[0175] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0176] According to the material data and scheduling logic, the target action is determined from the unexecuted actions; an execution signal is sent to the target action, and the action time of the target action is used as the initial required running time; according to the avoidance logic, the actions to be executed that meet the running conditions are screened out from the target actions that receive the execution signal.
[0177] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0178] When any action changes from unexecuted to executed, the action running flag in the running matrix is updated; the running time required for the executed action is updated, including: updating the running time required in the running matrix corresponding to the executed action.
[0179] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0180] According to the needle matching task and material data, check whether the material meets the requirements of the needle matching task; if the material meets the requirements of the needle matching task, execute the cyclic simulation steps according to the preset period; if the material does not meet the requirements of the needle matching task, determine the missing material information based on the material data and the needle matching task.
[0181] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0182] According to the operation mode of the mechanism in the equipment, the actions of each mechanism of the equipment during operation and the corresponding execution conditions of each action are determined; according to the station design data of the equipment, the motor speed and cylinder speed of the mover involved in each action, the action time corresponding to each action is determined; according to each action, the execution conditions corresponding to each action and the action time corresponding to each action, the action data of the mechanism operation is constructed.
[0183] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0184] According to the operation mode of the mechanism in the equipment and the workstation design data of the equipment, the action data of the mechanism operation is constructed; the action data includes the execution conditions of each action; the material data related to the target task is determined; a cyclic simulation is performed according to the preset period, and in each simulation, each action is executed according to the material data and the execution conditions, and the material data is updated when the material update conditions are met; if it is determined based on the updated material data that the task end conditions are met, the simulation is stopped after all actions are executed; the equipment operation efficiency is determined based on the time consumed by the cyclic simulation and the number of materials involved in the target task.
[0185] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0186] According to the material data and execution conditions, the actions to be executed are determined from the unexecuted actions, and the actions to be executed are executed; based on the preset cycle, the running time required for the executed actions is updated; wherein, the running time initially required for the executed actions is the corresponding action time; if the running time required for any executed action is zero, the action is updated to an unexecuted action.
[0187] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0188] According to the material data and scheduling logic, the target action is determined from the unexecuted actions; an execution signal is sent to the target action, and the action time of the target action is used as the initial required running time; according to the avoidance logic, the actions to be executed that meet the running conditions are screened out from the target actions that receive the execution signal.
[0189] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0190] When any action changes from unexecuted to executed, the action running flag in the running matrix is updated; the running time required for the executed action is updated, including: updating the running time required in the running matrix corresponding to the executed action.
[0191] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0192] According to the needle matching task and material data, check whether the material meets the requirements of the needle matching task; if the material meets the requirements of the needle matching task, execute the cyclic simulation steps according to the preset period; if the material does not meet the requirements of the needle matching task, determine the missing material information based on the material data and the needle matching task.
[0193] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0194] According to the operation mode of the mechanism in the equipment, the actions of each mechanism of the equipment during operation and the corresponding execution conditions of each action are determined; according to the station design data of the equipment, the motor speed and cylinder speed of the mover involved in each action, the action time corresponding to each action is determined; according to each action, the execution conditions corresponding to each action and the action time corresponding to each action, the action data of the mechanism operation is constructed.
[0195] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0196] According to the operation mode of the mechanism in the equipment and the workstation design data of the equipment, the action data of the mechanism operation is constructed; the action data includes the execution conditions of each action; the material data related to the target task is determined; a cyclic simulation is performed according to the preset period, and in each simulation, each action is executed according to the material data and the execution conditions, and the material data is updated when the material update conditions are met; if it is determined based on the updated material data that the task end conditions are met, the simulation is stopped after all actions are executed; the equipment operation efficiency is determined based on the time consumed by the cyclic simulation and the number of materials involved in the target task.
[0197] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0198] According to the material data and execution conditions, the actions to be executed are determined from the unexecuted actions, and the actions to be executed are executed; based on the preset cycle, the running time required for the executed actions is updated; wherein, the running time initially required for the executed actions is the corresponding action time; if the running time required for any executed action is zero, the action is updated to an unexecuted action.
[0199] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0200] According to the material data and scheduling logic, the target action is determined from the unexecuted actions; an execution signal is sent to the target action, and the action time of the target action is used as the initial required running time; according to the avoidance logic, the actions to be executed that meet the running conditions are screened out from the target actions that receive the execution signal.
[0201] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0202] When any action changes from unexecuted to executed, the action running flag in the running matrix is updated; the running time required for the executed action is updated, including: updating the running time required in the running matrix corresponding to the executed action.
[0203] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0204] According to the needle matching task and material data, check whether the material meets the requirements of the needle matching task; if the material meets the requirements of the needle matching task, execute the cyclic simulation steps according to the preset period; if the material does not meet the requirements of the needle matching task, determine the missing material information based on the material data and the needle matching task.
[0205] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0206] According to the operation mode of the mechanism in the equipment, the actions of each mechanism of the equipment during operation and the corresponding execution conditions of each action are determined; according to the station design data of the equipment, the motor speed and cylinder speed of the mover involved in each action, the action time corresponding to each action is determined; according to each action, the execution conditions corresponding to each action and the action time corresponding to each action, the action data of the mechanism operation is constructed.
[0207] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods 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 this application can include at least one of non-volatile 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), magnetoresistive 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, etc., but are not limited to this.
[0208] 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 specification.
[0209] 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 device simulation method, characterized in that: The method comprises: According to the operation mode of the mechanism in the device, the actions of each mechanism of the device during operation and the execution conditions corresponding to each action are determined; according to the station design data of the device, the motor speed and cylinder speed of the mover involved in each action, the action time corresponding to each action is determined; according to each action, the execution conditions corresponding to each action and the action time corresponding to each action, the action data of the mechanism operation is constructed; the device is a needle matching device or a needle return device; Determine material data related to the target task; when the device is a needle matching device, the target task is a needle matching task, and when the device is a needle return device, the target task is a needle return task; Performing cyclic simulation according to a preset period, during each simulation, executing each action according to the material data and the execution condition, and updating the material data when the material update condition is met; If it is determined based on the updated material data that the task end conditions have been met, the simulation will be stopped after all actions have been executed; The equipment operating efficiency is determined based on the time taken for the cycle simulation and the quantity of materials involved in the target task.
2. The method according to claim 1, characterized in that The action data also includes the action time of each action, and the execution of each action according to the material data and the execution condition includes: Determine, according to the material data and the execution condition, an action to be executed from unexecuted actions, and execute the action to be executed; Based on a preset cycle, the running time required for the executed action is updated; wherein the running time initially required for the executed action is the corresponding action time; If the running time required for any executed action is zero, the action is updated to an unexecuted action.
3. The method according to claim 2, characterized in that The execution condition includes a scheduling logic and an avoidance logic, and the determining of the to-be-executed action from the unexecuted actions according to the material data and the execution condition includes: Determining a target action from unexecuted actions based on the material data and the scheduling logic; Sending an execution signal to the target action, and taking the action time of the target action as the initial required running time; According to the avoidance logic, actions to be executed that meet the operating conditions are screened out from the target actions that receive the execution signal.
4. The method according to claim 2, characterized in that: Each mechanism corresponds to an operation matrix, and the operation matrix includes an action operation flag and a required operation time. The method further includes: When any action changes from unexecuted to executed, updating the action execution flag in the operation matrix; The updating of the running time required for the executed action includes: Update the required running time in the running matrix corresponding to the executed action.
5. The method according to claim 1, characterized in that The target task is a needle matching task; After determining the material data related to the target task, the method further includes: According to the needle matching task and the material data, detecting whether the material meets the requirements of the needle matching task; If the material meets the requirements of the needle matching task, the cycle simulation step is performed according to the preset period; If the material does not meet the requirements of the needle matching task, the missing material information is determined based on the material data and the needle matching task.
6. A device simulation apparatus, characterized in that: The device comprises: An action data construction module is used to determine the actions of each mechanism of the device during operation and the execution conditions corresponding to each action according to the operation mode of the mechanism in the device; determine the action time corresponding to each action according to the station design data of the device, the motor speed and cylinder speed of the mover involved in each action; construct the action data of the mechanism operation according to each action, the execution conditions corresponding to each action and the action time corresponding to each action; the device is a needle fitting device or a needle return device; A material data determination module, used to determine material data related to a target task; when the device is a needle-matching device, the target task is a needle-matching task; when the device is a needle-returning device, the target task is a needle-returning task; A cyclic simulation module, used for performing cyclic simulation according to a preset period, executing each action according to the material data and the execution condition during each simulation, and updating the material data when the material update condition is met; The simulation completion judgment module is used to stop the simulation after all actions are executed if it is determined based on the updated material data that the task end conditions have been met; The equipment operation efficiency determination module is used to determine the equipment operation efficiency based on the time consumption of the cycle simulation and the quantity of materials involved in the target task.
7. The device according to claim 6, characterized in that The cycle simulation module is also used to: Determine, according to the material data and the execution condition, an action to be executed from unexecuted actions, and execute the action to be executed; Based on a preset cycle, the running time required for the executed action is updated; wherein the running time initially required for the executed action is the corresponding action time; If the running time required for any executed action is zero, the action is updated to an unexecuted action.
8. A computer 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 5 are implemented.
9. 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 5 are implemented.
10. 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 5 are implemented.
Citation Information
Patent Citations
Efficiency calculation method and device based on simulation, storage medium and electronic equipment
CN109933813A
Stacker task scheduling method and device, computer equipment and storage medium
CN115619178A
