Distributed tool management method and system based on block chain
By combining blockchain smart contracts and a distributed tool library, the optimal tool scheduling scheme is calculated and tool information is managed using NFTs, which solves the problems of slow machine tool scheduling speed and insufficient security, and realizes fast and secure tool management.
Patent Information
- Application Number
- CN202511101100.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-07
- Publication Date
- 2025-12-05
AI Technical Summary
In the existing technology, there are problems of slow scheduling speed and insufficient safety in the process of machine tool scheduling, especially when scheduling over a large area, the long tool transport distance can easily lead to accidental damage.
A blockchain-based distributed tool management system is adopted. Through blockchain smart contracts and a distributed tool library, the optimal tool scheduling scheme is calculated to achieve the scheduling of the target tool closest to the machine tool. Tool information is managed through non-fungible tokens (NFTs) to ensure that the data is immutable and traceable.
It improves the speed and safety of tool scheduling, reduces the time tools spend in the external environment, enhances the reliability and traceability of tool management, and ensures safe and transparent management of tools throughout their entire lifecycle.
Smart Images

Figure CN121069886A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of blockchain, in particular to a distributed tool management method and system based on blockchain. BACKGROUND
[0002] Different tools are installed on the machine tool when performing different tasks, so there are a large number of tool scheduling processes in the workshop. It is necessary to design a suitable way to manage the tools involved in the tool scheduling process, and improve the speed and accuracy of tool scheduling. SUMMARY
[0003] The present disclosure provides a distributed tool management method and system based on blockchain, which can improve the speed and safety of tool scheduling. The technical solution at least includes the following solutions: In a first aspect, a tool management system based on blockchain is provided, which includes a distributed tool library, a blockchain, a tool input module, and a tool management module. The blockchain is connected to the tool input module and the tool management module. The tool management module is connected to the distributed tool library, which includes a workshop tool library, a production line tool library, and a machine tool library. The tool management module is configured to receive a first tool scheduling task from a manufacturing execution system. Based on the first tool scheduling task, the tool management module calculates an optimal tool scheduling scheme from the distributed tool library. The optimal tool scheduling scheme is used to schedule a target tool closest to a first machine tool. The target tool is a tool in the distributed tool library that is to be installed on the first machine tool. Based on the optimal tool scheduling scheme, the tool management module generates a tool scheduling request and uploads the tool scheduling request to a smart contract of the blockchain. The tool management module receives an approval instruction from the smart contract of the blockchain. The approval instruction indicates that the tool management module agrees to schedule the tool according to the optimal tool scheduling scheme. Based on the optimal tool scheduling scheme, the tool management module schedules the tool.
[0004] Optionally, in the distributed tool library, any workshop tool library includes at least one production line tool library corresponding to the workshop tool library, and any production line tool library includes at least one machine tool tool library corresponding to the production line tool library, and the calculation of the optimal tool scheduling scheme from the distributed tool library based on the first tool scheduling task includes: based on the first tool scheduling task, obtaining the target tool and the first machine tool; searching for the target tool from the machine tool tool library corresponding to the first machine tool; in the case that the target tool does not exist in the machine tool tool library corresponding to the first machine tool, searching for the target tool from the production line tool library corresponding to the first production line to which the first machine tool belongs; in the case that the target tool does not exist in the production line tool library corresponding to the first production line, searching for the target tool from the workshop tool library corresponding to the first workshop to which the first production line belongs; in the case that the target tool does not exist in the first workshop, searching for the target tool from the workshop tool library corresponding to the second workshop, which is any workshop different from the first workshop.
[0005] Optionally, the tool input module is configured to obtain tool information of a first tool, generate a non-fungible token (NFT) of the first tool based on the tool information of the first tool, and upload the NFT of the first tool to a blockchain, the first tool being any tool stored in the distributed tool library.
[0006] Optionally, the generation of the NFT of the first tool based on the tool information of the first tool includes: generating tool JSON data of the first tool based on the tool information of the first tool, the tool JSON data including a unique ID of the tool, geometric parameters of the tool, a tool use history, a tool storage location, and a tool availability status; processing the tool JSON data of the first tool using an encryption algorithm to obtain a hash value of the tool JSON data of the first tool; storing the hash value of the tool JSON data of the first tool in a distributed storage system and generating a content identifier; and processing the tool JSON data of the first tool and the content identifier using a smart contract of the blockchain to obtain the NFT of the first tool.
[0007] Optionally, the tool management system further includes a monitoring module connected to the blockchain, the monitoring module being configured to calculate a remaining life of a tool based on tool information of the tool and store the remaining life in the NFT of the tool.
[0008] Optionally, the monitoring module is further connected with the machine tool, and the monitoring module is configured to acquire wear data of the tool on the machine tool in real time, and calculate the remaining life of each tool on the machine tool in real time based on the wear data, the wear data being collected based on a tool wear sensor, and the wear data including machining time, temperature, vibration frequency and cutting force of the tool.
[0009] Optionally, the monitoring module is further connected with the tool management module, and the monitoring module is further configured to generate a second tool scheduling task when the remaining life of the tool is less than a life threshold, and send the second tool scheduling task to the tool management module.
[0010] Optionally, the tool management module includes a plurality of machine tool tool management sub-modules, each machine tool tool management sub-module is configured to manage a machine tool tool library, and the smart contract of the blockchain is configured to receive the tool scheduling request from the machine tool tool management sub-module corresponding to the machine tool tool library of the first machine tool, and send the tool scheduling request to the machine tool tool management sub-module corresponding to the machine tool tool library of the second machine tool, the machine tool tool library of the second machine tool being the machine tool tool library indicated by the tool scheduling request; receive the approval instruction sent by the machine tool tool management sub-module corresponding to the machine tool tool library of the second machine tool, and send the approval instruction to the machine tool tool management sub-module corresponding to the machine tool tool library of the first machine tool.
[0011] Optionally, during the tool scheduling process, the tool information of any tool with a state change is recorded and uploaded to the blockchain, the tool with a state change including a tool being installed or dismounted on a machine tool, and a tool being stored or taken out of the distributed tool library.
[0012] The second aspect further provides a tool management method based on a blockchain, comprising: receiving a first tool scheduling task from a manufacturing execution system; calculating an optimal tool scheduling scheme from a distributed tool library based on the first tool scheduling task, the distributed tool library including a workshop tool library, a production line tool library and a machine tool tool library, the optimal tool scheduling scheme being used to schedule a target tool closest to a first machine tool, the target tool being a tool in the distributed tool library to be installed on the first machine tool; generating a tool scheduling request based on the optimal tool scheduling scheme, and uploading the tool scheduling request to a smart contract of the blockchain; receiving an approval instruction from the smart contract of the blockchain, the approval instruction being used to indicate that the tool management module agrees to schedule the tool according to the optimal tool scheduling scheme; and scheduling the tool based on the optimal tool scheduling scheme.
[0013] Optionally, in the distributed tool library, any workshop tool library comprises at least one production line tool library corresponding to the workshop tool library, and any production line tool library comprises at least one machine tool tool library corresponding to the production line tool library, and the calculation of the optimal tool scheduling scheme from the distributed tool library based on the first tool scheduling task comprises: based on the first tool scheduling task, the target tool and the first machine tool are obtained; the target tool is searched from the machine tool tool library corresponding to the first machine tool; in the case that the target tool does not exist in the machine tool tool library corresponding to the first machine tool, the target tool is searched from the production line tool library corresponding to the first production line to which the first machine tool belongs; in the case that the target tool does not exist in the production line tool library corresponding to the first production line, the target tool is searched from the workshop tool library corresponding to the first workshop to which the first production line belongs; and in the case that the target tool does not exist in the first workshop, the target tool is searched from the workshop tool library corresponding to the second workshop, which is any workshop different from the first workshop.
[0014] Optionally, in the tool scheduling process, the tool information of any tool with a state change is recorded and uploaded to the blockchain, and the tool with the state change comprises a tool mounted on a machine tool, a tool put into or taken out of the distributed tool library.
[0015] The technical scheme provided by the embodiments of the present disclosure has at least the following beneficial effects: When the workshop tool scheduling is performed, it is more desirable that the tool is scheduled in a small range, and the tool scheduling in a small range can have a faster scheduling speed. The tool scheduling in a small range indicates that the tool conveying distance is short, and the tool conveying distance is short, so that the time of the tool in the external environment (an area other than the machine tool and the tool library) is also short. Since the tool may be damaged due to accidents when it is in the external environment, the time of the tool in the external environment is short, which can reduce the time of the tool that may have accidents and improve the safety of the tool. In the embodiments of the present disclosure, the tool management module is used to generate an optimal tool scheduling scheme, which can realize the scheduling of the target tool from the distributed tool library to the first machine tool with the shortest distance. That is, the tool scheduling using the optimal tool scheduling scheme can improve the speed and safety of the tool scheduling. In addition, the tool is managed by using the blockchain, and the whole life cycle of the tool can be queried on the blockchain. Since the data on the blockchain has the characteristic of being unmodifiable, the whole life cycle of the tool is safe and traceable, which improves the reliability of the tool management process. BRIEF DESCRIPTION OF DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0017] Figure 1 A structural schematic diagram of a tool management system based on a blockchain provided by an example embodiment of the present disclosure is shown. Figure 2 A structural schematic diagram of a tool management system based on a blockchain provided by another example embodiment of the present disclosure is shown. Figure 3 A flowchart of a tool management method based on a blockchain provided by another example embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0018] Unless otherwise defined, technical terms or scientific terms used herein should be understood as having the same meaning as commonly understood by one of ordinary skill in the art to which the present disclosure belongs. The terms "first", "second", "third" and similar terms used in the description and claims of the present patent application do not denote any order, quantity, or importance, but are used to distinguish different components. Similarly, the terms "one" or "a" or similar terms do not denote a quantity restriction, but mean that at least one exists. The terms "include" or "contain" or similar terms mean that the elements or objects appearing before the "include" or "contain" are encompassed, and the elements or objects listed after the "include" or "contain" and their equivalents are not excluded. The terms "connect" or "connected" or similar terms are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect.
[0019] In order to make the purposes, technical solutions and advantages of the present disclosure clearer, the embodiments of the present disclosure will be further described in detail below with reference to the drawings.
[0020] Figure 1 A structural schematic diagram of a tool management system based on a blockchain provided by an example embodiment of the present disclosure is shown. Referring to Figure 1 The tool management system based on a blockchain includes a distributed tool library 101, a blockchain 102, a tool entry module 103, and a tool management module 104.
[0021] In the distributed tool library 101, any workshop tool library includes at least one production line tool library corresponding to the workshop tool library, and any production line tool library includes at least one machine tool tool library corresponding to the production line tool library.
[0022] The tool entry module 103 and the tool management module 104 are connected with the blockchain 102, for example, through a blockchain adapter. The blockchain adapter serves as an intermediate interface for data interaction between the blockchain network and the underlying system, realizing data transmission. The blockchain adapter provides an API (Application Programming Interface) interface for the tool scheduling system or other systems to call, so as to query the tool inventory data on the blockchain and submit a tool state update request.
[0023] The tool management module 104 is also connected with the distributed tool library.
[0024] Optionally, the blockchain 102 is responsible for storing the state, life, flow record, and scheduling log of the tool, ensuring that all sub-modules can access synchronously. Exemplarily, the blockchain 102 adopts a consortium chain structure, and each production line or workshop serves as an independent blockchain node. The tool entry module 103 and the tool management module 104 interact with the blockchain network through the blockchain adapter.
[0025] Optionally, the tool entry module 103 is configured to obtain tool information of a first tool, generate a non-fungible token (NFT) of the first tool based on the tool information of the first tool, and upload the NFT of the first tool to the blockchain. The first tool is any tool stored in the distributed tool library.
[0026] Optionally, the tool information includes but is not limited to the geometric parameters (diameter, length, angle, etc.) of the tool, the material of the tool, the unique ID (Identity Document) of the tool, the brand, the model, the supplier, the maximum number of machining times, the production date, the tool use history, the tool storage location, and the tool available state. An electronic tag, for example, an RFID (Radio Frequency Identification) tag, is arranged on each tool. After obtaining the tool information of the first tool, the tool entry module can enter the tool information in the electronic tag of the first tool through a tag reader and writer.
[0027] The tool use history refers to the record of the use of the tool in each machine tool in the workshop from the brand-new state, the tool storage location refers to the tool storage location in the distributed tool library, and the tool available state includes available and failure.
[0028] Optionally, the tool entry module 103 is configured to generate the non-fungible token (NFT) of the first tool based on the tool information of the first tool by the following four steps.
[0029] In a first step, based on the tool information of the first tool, tool JSON data of the first tool is generated.
[0030] The tool JSON data includes a unique ID of the tool, geometric parameters of the tool, a tool use history, a tool storage location, and a tool available state.
[0031] Here, the tool JSON data is obtained after tool information is converted into a JSON format for storage, and the content in the tool JSON data is the same as that in the tool information.
[0032] In a second step, an encryption algorithm is used to process the tool JSON data of the first tool to obtain a hash value of the tool JSON data of the first tool.
[0033] In implementation, the encryption algorithm can be SHA (Secure Hash Algorithm)-256. The implementation of SHA-256 is more in related technologies, and is omitted here.
[0034] In a third step, the hash value of the tool JSON data of the first tool is stored in a distributed storage system, and a content identifier is generated.
[0035] The distributed storage system can be, for example, IPFS (InterPlanetary File System). After the hash value of the tool JSON data of the first tool is stored in the IPFS, a content identifier (Content-ID, CID) can be generated based on the tool JSON data of the first tool. IPFS uses content addressing (Content Addressing), and the CID is a unique hash value calculated based on the tool JSON data, so once the tool JSON data is modified, the CID will also change. In this way, by generating the CID, it is possible to prevent tampered data from being confused with the original data.
[0036] In a fourth step, a smart contract of a block chain is used to process the tool JSON data of the first tool and the content identifier to obtain an NFT of the first tool.
[0037] Optionally, based on the ERC-721 or ERC-1155 standard, the smart contract is used to mint the NFT of the first tool. The NFT of the first tool includes the tool JSON data of the first tool and the content identifier of the first tool, ensuring that the data is traceable on the block chain.
[0038] After the NFT of the first tool is minted, it is uploaded to the block chain 102, and the block chain 102 calls the smart contract to store the NFT of the first tool after binding it with the unique ID of the first tool.
[0039] Optionally, in the tool scheduling process, the tool information of any tool with a state change is recorded and uploaded to the blockchain, and the tool with a state change includes a tool mounted on a machine tool being mounted or dismounted, and a tool being stored or taken out from the distributed tool library.
[0040] When a brand new tool is about to be stored in the distributed tool library, the tool is first processed by the tool entry module 103 to generate the NFT of the tool. Since the tool is a brand new tool that has not been stored, the tool storage location in the tool information is unknown at this time. After the NFT of the tool is bound to the unique tool ID of the tool and uploaded to the blockchain, the tool storage location of the tool can be allocated. After the tool is stored in the distributed tool library 101 according to the allocated tool storage location, it is indicated that the state of the tool has changed, and the tool information of the tool is recorded and uploaded to the blockchain at this time. Since the tool has been stored in the distributed tool library at this time, the tool storage location is included in the tool information of the tool, and uploading the tool information of the tool to the blockchain is to synchronize the tool storage location of the tool to the NFT of the tool in the blockchain.
[0041] In the embodiments of the present disclosure, each tool has an NFT in the blockchain, which is minted by a smart contract, so that the data stored in the NFT cannot be tampered with by others, ensuring the security of the data. When the tool information of a certain tool is uploaded to the blockchain, it is actually to synchronize the tool information of the tool to the NFT of the tool.
[0042] When storing data in the blockchain, the Merkle tree is used to verify the integrity of the transaction data in the block, and the hash encryption is used to ensure that the NFT record, CID and scheduling log are not tampered with. Each time the tool data is updated, a new transaction record is generated and packed into a new block under the consensus mechanism to form a chain of historical records. All nodes can track the life cycle of the tool through the NFT record, CID and historical transactions stored in the blockchain. If a node tries to tamper with the tool data, other alliance chain nodes will detect data inconsistency in the consensus process and refuse the modification, ensuring that the data cannot be tampered with.
[0043] Optionally, the tool management module 104 is configured to perform steps a-e as follows to realize tool scheduling.
[0044] Step a, receiving a first tool scheduling task from a manufacturing execution system.
[0045] Here, the Manufacturing Execution System (MES) is a production management system for workshops. If a tool needs to be scheduled (e.g., replaced) in a certain workshop, a worker sends a first tool scheduling task to the tool management module 104 through the MES of the workshop.
[0046] In actual implementation, the tool management module 104 can include multiple sub-modules, each of which is used to manage a tool library. For example, each workshop tool library corresponds to a workshop tool management sub-module, each production line tool library corresponds to a production line tool management sub-module, and each machine tool tool library corresponds to a machine tool tool management sub-module.
[0047] In this case, if the first tool scheduling task is used to indicate that a tool in the first machine tool is to be replaced with a target tool, the first tool scheduling task is sent directly to the machine tool tool management sub-module corresponding to the first machine tool, i.e., steps a to e are performed by the machine tool tool management sub-module corresponding to the first machine tool.
[0048] Step b: based on the first tool scheduling task, calculating an optimal tool scheduling scheme from the distributed tool library.
[0049] The optimal tool scheduling scheme is used to schedule a target tool closest to the first machine tool, and the target tool is a tool in the distributed tool library to be installed in the first machine tool.
[0050] Optionally, step b includes the following five steps.
[0051] First, based on the first tool scheduling task, obtaining the target tool and the first machine tool.
[0052] In implementation, a tool model can be set in the first tool scheduling task, and any tool in the distributed tool library that meets the tool model can be the target tool. When the target tool is installed in the first machine tool, if there is an old tool in the installation position of the target tool, the old tool also belongs to the scheduling object of the first tool scheduling task.
[0053] Second, searching for the target tool from the machine tool tool library corresponding to the first machine tool.
[0054] In implementing the second step, the machine tool tool management sub-module corresponding to the first machine tool can be used to search for the target tool from the machine tool tool library corresponding to the first machine tool.
[0055] Third, if the target tool does not exist in the machine tool tool library corresponding to the first machine tool, searching for the target tool from the production line tool library corresponding to the first production line to which the first machine tool belongs.
[0056] The production line tool library corresponding to the first production line to which the first machine tool belongs further includes other machine tool tool libraries in addition to the machine tool tool library corresponding to the first machine tool, and the third step is essentially to search for the target tool from the other machine tool tool libraries in the production line tool library corresponding to the first production line in addition to the machine tool tool library corresponding to the first machine tool.
[0057] The fourth step is to search for the target tool from the workshop tool library corresponding to the first workshop to which the first production line belongs in the case that the target tool does not exist in the production line tool library corresponding to the first production line.
[0058] The workshop tool library corresponding to the first workshop includes at least one production line tool library, and the multiple production line tool libraries include other tool libraries in addition to the production line tool library corresponding to the first production line. The fourth step is essentially to search for the target tool from the other production line tool libraries in the workshop tool library corresponding to the first workshop in addition to the production line tool library corresponding to the first production line.
[0059] The fifth step is to search for the target tool from the workshop tool library corresponding to the second workshop in the case that the target tool does not exist in the first workshop.
[0060] The second workshop is any one workshop different from the first workshop.
[0061] If there are multiple workshops in the factory where the first workshop is located, when the fifth step is performed, the multiple workshops in the factory can be sorted according to the distances between the other workshops and the first workshop, and then each workshop is sequentially taken as the second workshop to perform the fifth step according to the order in the sorting until the target tool is found.
[0062] When the above first step to the fifth step are performed, if the target tool is found in any step, the subsequent steps are stopped, and the position where the found target tool is located is taken as the optimal tool scheduling scheme. For example, the target tool is found in the third step from the machine tool tool library corresponding to the second machine tool, and the optimal tool scheduling scheme is to take the target tool from the machine tool tool library corresponding to the second machine tool to the first machine tool. The second machine tool is a machine tool different from the first machine tool in the first production line.
[0063] When the tool scheduling in the workshop is performed, it is more desirable to schedule the tool in a small range. The tool scheduling in a small range can have a faster scheduling speed. The tool scheduling in a small range indicates that the tool transportation distance is short. The tool transportation distance is short, and the time of the tool in the external environment (an area other than the machine tool and the tool library) is also short. Since the tool may be damaged due to accidents when it is in the external environment, the short time of the tool in the external environment can reduce the time of the tool that may have accidents, and improve the safety of the tool. In the embodiments of the present disclosure, the optimal tool scheduling scheme is generated by adopting the first step to the fifth step. The optimal tool scheduling scheme generated can realize the scheduling of the target tool from the distributed tool library to the target tool closest to the first machine tool, that is, the optimal tool scheduling scheme can improve the tool scheduling speed and safety.
[0064] Step c, generating a tool scheduling request based on the optimal tool scheduling scheme, and uploading the tool scheduling request to the smart contract of the blockchain.
[0065] The tool scheduling request is used to indicate that the target tool is scheduled to the first machine tool according to the position indicated in the optimal tool scheduling scheme.
[0066] For example, the optimal tool scheduling scheme indicates that the target tool is taken from the machine tool library corresponding to the second machine tool to the first machine tool. The sending object of the tool scheduling request is the machine tool management sub-module corresponding to the machine tool library of the second machine tool.
[0067] After the machine tool management sub-module corresponding to the machine tool library of the first machine tool uploads the tool scheduling request to the blockchain 102, the smart contract of the blockchain 102 will send the tool scheduling request to the sending object of the tool scheduling request, that is, to the machine tool management sub-module corresponding to the machine tool library of the second machine tool.
[0068] In the case that the target tool exists in the distributed tool library, corresponding to step c, the smart contract of the blockchain 102 is used to receive the tool scheduling request from the machine tool management sub-module corresponding to the machine tool library of the first machine tool, and send the tool scheduling request to the machine tool management sub-module corresponding to the machine tool library of the second machine tool. The machine tool library of the second machine tool is the machine tool library indicated by the tool scheduling request. After receiving the tool scheduling request, the machine tool management sub-module corresponding to the machine tool library of the second machine tool will audit whether the target tool exists in the machine tool library of the second machine tool. If the target tool exists in the machine tool library of the second machine tool, the machine tool management sub-module corresponding to the machine tool library of the second machine tool will generate an approval instruction, and send the approval instruction to the smart contract of the blockchain 102. The approval instruction is used to indicate the consent of the tool management module 104 to perform tool scheduling according to the optimal tool scheduling scheme.
[0069] If the audit finds that the target tool does not exist in the tool magazine of the second machine tool, or the target tool cannot be called out for some reason, a request rejection instruction will be sent, which is similar to the sending process of the approval instruction, and the details are omitted here.
[0070] In some embodiments, the target tool does not exist in the distributed tool magazine, and the optimal tool scheduling scheme at this time is to send a tool replenishment request to the MES system, which is used to request the MES system to purchase the target tool from the outside and store it in the distributed tool magazine. The tool scheduling request generated according to the optimal tool scheduling scheme is the tool replenishment request. After the MES system receives the tool replenishment request, it will perform the corresponding purchase and storage operation. In this case, corresponding to step c, the smart contract of the blockchain 103 is used to receive the tool scheduling request from the machine tool management submodule corresponding to the tool magazine of the first machine tool, and send the tool scheduling request to the MES system.
[0071] Optionally, the tool scheduling request can also include a scheduling reason, which includes replacing the tool due to tool damage or replacing the tool according to the production task requirements.
[0072] Step d, receiving the approval instruction from the smart contract of the blockchain.
[0073] After receiving the approval instruction from the machine tool management submodule corresponding to the tool magazine of the second machine tool, the smart contract of the blockchain 102 will send the approval instruction to the machine tool management submodule corresponding to the tool magazine of the first machine tool.
[0074] If the machine tool management submodule corresponding to the tool magazine of the first machine tool receives the request rejection instruction, it will re-execute steps b to c until it receives the approval instruction, that is, after executing step d, it will continue to execute step e.
[0075] Step e, tool scheduling based on the optimal tool scheduling scheme.
[0076] After receiving the approval instruction, the machine tool management submodule corresponding to the tool magazine of the first machine tool can perform tool scheduling according to the optimal tool scheduling scheme.
[0077] In the implementation of tool scheduling, the corresponding tool magazine administrator will receive the instruction, and then take out the target tool from the distributed tool magazine according to the instruction. When taking out the target tool, the tool is scanned through the electronic tag reader, and the out-of-magazine information of the target tool is recorded. Then, the target tool will be transported to the first machine tool, and the staff can receive the target tool.
[0078] After the tool scheduling is completed (the target tool arrives at the area where the first machine tool is located), the worker will install the target tool on the first machine tool, and complete a tool change. In this tool change, the state of the new tool (target tool) and the old tool (the tool that is replaced) has changed, so the tool information of the new tool and the tool information of the old tool will be uploaded to the blockchain in this tool change.
[0079] Depending on the state of the old tool, the old tool has different processing methods. If the old tool is scrapped and cannot be used, it directly enters the destruction process and does not need to be stored in the distributed tool library. At this time, the destruction process also needs to be uploaded to the blockchain for archiving. If the old tool can still be used, the old tool will be stored in the distributed tool library, and the tool information of the old tool will also be uploaded to the blockchain for archiving when the old tool is stored.
[0080] In the embodiments of the present disclosure, the data processed by the blockchain will leave a record in the blockchain, and the record is tamper-proof, thereby ensuring that the whole life cycle of the tool is traceable on the blockchain.
[0081] Figure 2 The structure schematic diagram of the blockchain-based tool management system provided by another example embodiment of the present disclosure is shown. Compared with the structure schematic diagram of the blockchain-based tool management system provided by the first example embodiment of the present disclosure, Figure 1 The difference is that Figure 2 The blockchain-based tool management system in the embodiment further includes a monitoring module 201.
[0082] The monitoring module 201 is connected with the blockchain 102, and the monitoring module 201 is configured to calculate the remaining life of the tool according to the tool information of the tool, and store the remaining life in the NFT of the tool. In implementation, the monitoring module can obtain the tool information of each tool from the blockchain 102, and calculate the remaining life of the tool according to the tool information of each tool. The monitoring module 201 can use any tool life calculation algorithm in the related art to calculate the remaining life of the tool.
[0083] In the presence of the monitoring module 201, the tool information further includes the remaining life of the tool calculated by the monitoring module 201.
[0084] Optionally, the monitoring module 201 is further connected with a machine tool (not shown in the figure), and the monitoring module is configured to obtain the wear data of the tool on the machine tool in real time, and calculate the remaining life of each tool on the machine tool in real time based on the wear data. The wear data is collected based on the tool wear sensor installed on the machine tool, and the wear data includes the machining time, temperature, vibration frequency and cutting force of the tool. In the case that the machine tool has the ability to collect wear data, the wear data can be obtained from the machine tool.
[0085] Optionally, the wear data obtained by the monitoring module 201 is stored in a local database, for example, a SQL / NoSQL database. The local database can store the current tool state of the machine tool (the tool data currently used by the machine), wear sensor data (temperature, vibration, cutting force, etc.), tool life prediction results (remaining life calculated by the monitoring module 201), local scheduling cache (to reduce the query pressure of the blockchain and improve the response speed), etc. In the implementation of the local database, a SQL database (such as MySQL) can be used to store the tool inventory and usage, a NoSQL database (such as MongoDB) can be used to store the sensor data stream, and a Redis cache mechanism can be used to store the recent tool scheduling results to improve performance.
[0086] Optionally, the monitoring module 201 is also connected with the tool management module 104, and the monitoring module is further configured to generate a second tool scheduling task when the remaining life of the tool is less than the life threshold, and send the second tool scheduling task to the tool management module. If the remaining life of a tool is less than the life threshold, it means that the tool cannot be used continuously and needs to be replaced. Therefore, the monitoring module 201 can generate a second tool scheduling task and send the second tool scheduling task to the tool management module. After receiving the second tool scheduling task, the tool management module can process the second tool scheduling task in the same way as the first tool scheduling task to complete the tool replacement.
[0087] The tool management system based on the blockchain in the embodiments of the present disclosure has the following advantages: (1) Distributed storage: By adopting a blockchain structure, each production line / workshop acts as a blockchain node, avoiding single point failure and improving system reliability.
[0088] (2) Good data consistency: The blockchain stores the key states of the tool (such as life and flow record), and the local database caches the latest tool state to ensure query efficiency and data consistency.
[0089] (3) Intelligent scheduling: The smart contract approves the tool allocation request submitted by the tool scheduling system, ensuring transparent and traceable process; the tool scheduling system calculates the optimal tool scheduling scheme to improve scheduling efficiency.
[0090] (4) Safety and transparency: Tool data is chained, tamper-proof, traceable, supports audit and life cycle management, and improves management reliability.
[0091] (5) Efficient collaboration: Through the blockchain network, tool data sharing and collaborative management across production lines, workshops, and factories are realized, improving resource utilization.
[0092] (6) Algorithm optimization: the tool scheduling system can include a monitoring module to predict tool life, optimize tool scheduling process, reduce tool waste, and improve production efficiency.
[0093] It should be noted that when the distributed tool management system based on the blockchain provided in the above embodiments is used for tool management, only the division of the above functional modules is used as an example for illustration, and in actual application, the above functions can be distributed to different functional modules according to needs, that is, the internal structure of the system is divided into different functional modules to complete all or part of the functions described above.
[0094] The division of modules in the embodiments of the present disclosure is illustrative, and is only a logical functional division. In actual implementation, there can be another division manner. In addition, each functional module in each embodiment of the present disclosure can be integrated in one processor, or can be a separate physical existence, or two or more modules can be integrated into one module. The integrated module can be realized in the form of hardware or in the form of a software functional module.
[0095] When the integrated module is realized in the form of a software functional module and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present disclosure essentially or the part that contributes to the prior art or all or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing an end device (which can be a personal computer, a mobile phone, or a communication device) or a processor to execute all or part of the steps of the method of each embodiment of the present disclosure. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0096] The following is a method embodiment of the present application. For details not described in detail in the method embodiment, reference can be made to the above system embodiment.
[0097] Figure 3 A flowchart of a tool management method based on a blockchain provided by another example embodiment of the present disclosure is shown. The method can be executed by the tool management module 104. Referring to Figure 3 , the method comprises: In step 301, a first tool scheduling task from a manufacturing execution system is received; In step 302, based on the first tool scheduling task, an optimal tool scheduling scheme is calculated from the distributed tool library.
[0098] The distributed tool library includes a workshop tool library, a production line tool library and a machine tool tool library, and the optimal tool scheduling scheme is used to schedule a target tool closest to the first machine tool, and the target tool is a tool to be installed in the first machine tool in the distributed tool library. Optionally, in the distributed tool library, any workshop tool library includes at least one production line tool library corresponding to the workshop tool library, any production line tool library includes at least one machine tool tool library corresponding to the production line tool library, and based on the first tool scheduling task, in this case, step 302 includes: based on the first tool scheduling task, obtaining the target tool and the first machine tool; searching for the target tool from the machine tool tool library corresponding to the first machine tool; in the case that the target tool does not exist in the machine tool tool library corresponding to the first machine tool, searching for the target tool from the production line tool library corresponding to the first production line to which the first machine tool belongs; in the case that the target tool does not exist in the production line tool library corresponding to the first production line, searching for the target tool from the workshop tool library corresponding to the first workshop to which the first production line belongs; in the case that the target tool does not exist in the first workshop, searching for the target tool from the workshop tool library corresponding to the second workshop, the second workshop being any workshop different from the first workshop.
[0099] In step 303, a tool scheduling request is generated based on the optimal tool scheduling scheme, and the tool scheduling request is uploaded to the smart contract of the blockchain.
[0100] In step 304, an approval instruction from the smart contract of the blockchain is received.
[0101] The approval instruction is used to indicate that the tool management module agrees to perform tool scheduling according to the optimal tool scheduling scheme.
[0102] In step 305, tool scheduling is performed based on the optimal tool scheduling scheme.
[0103] Optionally, during the tool scheduling process, the tool information of any tool with a state change is recorded and uploaded to the blockchain, and the tool with a state change includes a tool installed on a machine tool, a tool in or out of the distributed tool library.
[0104] In addition, the distributed tool management method based on the blockchain provided in the above embodiments and the distributed tool management system embodiment based on the blockchain belong to the same concept, and the specific implementation process is described in detail in the system embodiment, which will not be repeated here.
[0105] The above only describes optional embodiments of the present disclosure, and does not limit the present disclosure, and any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A blockchain-based tool management system, characterized by, The blockchain-based tool management system comprises a distributed tool library, a blockchain, a tool input module, and a tool management module, the blockchain is connected with the tool input module and the tool management module, the tool management module is connected with the distributed tool library, and the distributed tool library comprises a workshop tool library, a production line tool library, and a machine tool tool library; The tool management module is configured to receive a first tool scheduling task from a manufacturing execution system; Based on the first tool scheduling task, an optimal tool scheduling scheme is calculated from the distributed tool library, the optimal tool scheduling scheme is used to schedule a target tool closest to a first machine tool, and the target tool is a tool in the distributed tool library to be installed to the first machine tool; Based on the optimal tool scheduling scheme, a tool scheduling request is generated, and the tool scheduling request is uploaded to a smart contract of the blockchain; An approval passing instruction is received from the blockchain smart contract, and the approval passing instruction is used to indicate that the tool management module agrees to schedule the tool according to the optimal tool scheduling scheme; Based on the optimal tool scheduling scheme, the tool is scheduled.
2. The blockchain-based tool management system of claim 1, wherein, In the distributed tool library, any workshop tool library comprises at least one production line tool library corresponding to the workshop tool library, and any production line tool library comprises at least one machine tool tool library corresponding to the production line tool library, The optimal tool scheduling scheme is calculated from the distributed tool library based on the first tool scheduling task, comprising: Based on the first tool scheduling task, the target tool and the first machine tool are obtained; The target tool is searched from the machine tool tool library corresponding to the first machine tool; In the case that the target tool does not exist in the machine tool tool library corresponding to the first machine tool, the target tool is searched from the production line tool library corresponding to the first production line to which the first machine tool belongs; In the case that the target tool does not exist in the production line tool library corresponding to the first production line, the target tool is searched from the workshop tool library corresponding to the first workshop to which the first production line belongs; In the case that the target tool does not exist in the first workshop, the target tool is searched from the workshop tool library corresponding to a second workshop, which is any workshop different from the first workshop.
3. The blockchain-based tool management system of claim 1, wherein, The tool input module is configured to obtain tool information of a first tool, generate a non-fungible token (NFT) of the first tool based on the tool information of the first tool, and upload the NFT of the first tool to a blockchain, the first tool being any tool stored in the distributed tool library.
4. The blockchain-based tool management system of claim 3, wherein, The NFT of the first tool is generated based on the tool information of the first tool, comprising: Based on the tool information of the first tool, tool JSON data of the first tool is generated, the tool JSON data comprising a unique ID of the tool, geometric parameters of the tool, a tool use history, a tool storage location, and a tool available state; The tool JSON data of the first tool is processed by using an encryption algorithm to obtain a hash value of the tool JSON data of the first tool; storing a hash value of the tool JSON data of the first tool into a distributed storage system, and generating a content identifier; processing the tool JSON data of the first tool and the content identifier by using a smart contract of the blockchain to obtain an NFT of the first tool.
5. The blockchain-based tool management system according to claim 3 or 4, characterized in that, The tool management system further comprises a monitoring module connected with the blockchain, The monitoring module is configured to calculate the remaining life of the tool according to the tool information of the tool, and store the remaining life into the NFT of the tool.
6. The blockchain-based tool management system of claim 5, wherein, The monitoring module is further connected with the machine tool, and is configured to acquire the wear data of the tool on the machine tool in real time, and calculate the remaining life of each tool on the machine tool in real time based on the wear data, the wear data being collected based on a tool wear sensor, and the wear data comprising the machining time, temperature, vibration frequency and cutting force of the tool.
7. The blockchain-based tool management system of claim 5, wherein, The monitoring module is further connected with the tool management module, and is further configured to generate a second tool scheduling task when the remaining life of the tool is less than a life threshold, and send the second tool scheduling task to the tool management module.
8. The blockchain-based tool management system of any one of claims 2 to 4, wherein, The tool management module comprises a plurality of machine tool tool management sub-modules, each machine tool tool management sub-module being configured to manage a machine tool tool library, The smart contract of the blockchain is configured to receive the tool scheduling request from the machine tool tool management sub-module corresponding to the machine tool tool library of the first machine tool, and send the tool scheduling request to the machine tool tool management sub-module corresponding to the machine tool tool library of the second machine tool, the machine tool tool library of the second machine tool being indicated by the tool scheduling request; receive the approval instruction sent by the machine tool tool management sub-module corresponding to the machine tool tool library of the second machine tool, and send the approval instruction to the machine tool tool management sub-module corresponding to the machine tool tool library of the first machine tool.
9. The blockchain-based tool management system according to any one of claims 1 to 4, characterized in that, During the tool scheduling process, the tool information of any tool with a state change is recorded and uploaded to the blockchain, the tool with the state change including a tool being installed or dismounted on a machine tool, and a tool being stored or taken out of the distributed tool library.
10. A blockchain-based tool management method characterized by, The method comprises: receiving a first tool scheduling task from a manufacturing execution system; calculating an optimal tool scheduling scheme from a distributed tool library based on the first tool scheduling task, the distributed tool library comprising a workshop tool library, a production line tool library and a machine tool tool library, the optimal tool scheduling scheme being used to schedule a target tool closest to a first machine tool, the target tool being a tool in the distributed tool library to be installed on the first machine tool; generating a tool scheduling request based on the optimal tool scheduling scheme, and uploading the tool scheduling request to a smart contract of the blockchain; receiving an approval instruction from the smart contract of the blockchain, the approval instruction being used to indicate that the tool management module agrees to schedule the tool according to the optimal tool scheduling scheme; scheduling the tool based on the optimal tool scheduling scheme.
Citation Information
Patent Citations
Intelligent tool changing decision control system
CN116224902A
Intelligent manufacturing-oriented digital tool management system and operation method
CN116362693A
Block chain system for tool management
CN117523367A
Tool magazine operation control method and system
CN119304675A