TWI817707B - Blockchain-based manufacturing execution system and method - Google Patents

Blockchain-based manufacturing execution system and method Download PDF

Info

Publication number
TWI817707B
TWI817707B TW111133957A TW111133957A TWI817707B TW I817707 B TWI817707 B TW I817707B TW 111133957 A TW111133957 A TW 111133957A TW 111133957 A TW111133957 A TW 111133957A TW I817707 B TWI817707 B TW I817707B
Authority
TW
Taiwan
Prior art keywords
manufacturing
blockchain
production
node
chain
Prior art date
Application number
TW111133957A
Other languages
Chinese (zh)
Other versions
TW202412487A (en
Inventor
林錦德
李權洲
黃鈺淳
Original Assignee
國立中央大學
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 國立中央大學 filed Critical 國立中央大學
Priority to TW111133957A priority Critical patent/TWI817707B/en
Application granted granted Critical
Publication of TWI817707B publication Critical patent/TWI817707B/en
Publication of TW202412487A publication Critical patent/TW202412487A/en

Links

Images

Abstract

The present invention relates to a blockchain based manufacturing execution system, comprising: a blockchain network layer comprising a first permitted internal node, a second permitted internal node, a shared classification ledger and a smart contract that are maintained and executed by the first permitted internal node and the second permitted internal node jointly; a producing and manufacturing layer comprising a production management station and a work station; a middleware agent layer providing a production management end blockchain application program and a manufacturing end blockchain application program to link the producing and manufacturing layer to the blockchain network layer, wherein the production management station and the work station initiate an event to trigger an execution of the smart contract and an update of the shared classification ledger, so to drive the producing and manufacturing layer to execute a manufacturing operation, to drive an operation of the blockchain based manufacturing execution system.

Description

區塊鏈製造執行系統與方法 Blockchain manufacturing execution system and method

本發明係關於一種區塊鏈製造執行系統與方法,尤其是一種由在區塊鏈上執行之智能合約基於事件而驅動製造作業的一種去中心化製造執行系統與方法。 The present invention relates to a blockchain manufacturing execution system and method, particularly a decentralized manufacturing execution system and method that drives manufacturing operations based on events by smart contracts executed on the blockchain.

近年來,工業4.0已成為製造業的轉型升級目標,許多製造業紛紛將產線上的操作技術(operational technology,OT)標準化,並應用最新的資訊技術(information technology,IT),透過在工廠中大量部署各類傳感器以測量與收集OT作業產生的資料與數據,最終上傳製造執行系統(manufacturing execution system,MES)進行整合分析,從而由最頂層控制整體生產製造之執行。 In recent years, Industry 4.0 has become the transformation and upgrading goal of the manufacturing industry. Many manufacturing industries have standardized the operational technology (OT) on the production line and applied the latest information technology (IT). Various sensors are deployed to measure and collect information and data generated by OT operations, and are ultimately uploaded to the manufacturing execution system (MES) for integrated analysis, thereby controlling the execution of the overall production and manufacturing from the top level.

習用MES系統是一種訊息導向系統,其具有許多優點,包含監視和追蹤產線製造過程的功能,透過收集產品完整生命週期的即時數據,能有效協助管理人員確保有效的執行製造操作來提高產量的目標、進行產能優化或資源重新配置等。 The conventional MES system is an information-oriented system that has many advantages, including the function of monitoring and tracking the manufacturing process of the production line. By collecting real-time data on the complete life cycle of the product, it can effectively assist managers to ensure the effective execution of manufacturing operations to increase output. Goals, capacity optimization or resource reallocation, etc.

但習用的MES同時也是一套集中管理的生管平台,目標是統籌建立一個位於最頂層的管理層,以便對所有工廠內機台資料及物料流 動進行總管理,集中化的管理模式使得廠內各機台也相當依賴MES,由於兩者強烈的相依性,MES的穩定性將直接影響整個工廠的運行,因此企業需採用較好的安全系統來穩定維持MES系統的穩定運作,或使用兩套系統來預防MES崩潰。 However, the commonly used MES is also a centralized management production management platform. The goal is to coordinate the establishment of a top-level management layer to control all machine data and material flows in the factory. The centralized management model makes each machine in the factory very dependent on MES. Due to the strong dependence between the two, the stability of MES will directly affect the operation of the entire factory, so enterprises need to adopt better safety systems. To stably maintain the stable operation of the MES system, or use two systems to prevent MES collapse.

但標準化MES的導入對於中小型製造業(SME)而言不一定可以從中獲益,傳統中小型製造業的優勢在於,有能力針對客戶需求迅速修改製程甚至導入新製程,但標準化的複雜資訊系統大幅限制SME的彈性,MES昂貴的建置成本也讓SME對於投資回報有顧慮。因此,現有的MES平台並不能滿足SME發展工業4.0之需求,SME對MES的主要需求將在於:具備可適性、低成本與輕量化等條件。 However, the introduction of standardized MES may not necessarily benefit small and medium-sized manufacturing industries (SMEs). The advantage of traditional small and medium-sized manufacturing industries is that they have the ability to quickly modify processes or even introduce new processes according to customer needs. However, standardized and complex information systems This greatly limits the flexibility of SMEs, and the expensive construction costs of MES also make SMEs concerned about the return on investment. Therefore, the existing MES platform cannot meet the needs of SMEs to develop Industry 4.0. The main needs of SMEs for MES will be: adaptability, low cost and lightweight.

職是之故,習用製造執行系統存有許多亟待改進之處,有鑑於此發明人經過悉心嘗試與研究,並一本鍥而不捨之精神,終構思出本案「區塊鏈製造執行系統與方法」,能夠克服上述缺點,以下為本發明之簡要說明。 For this reason, there are many areas for improvement in conventional manufacturing execution systems. In view of this, the inventor finally conceived the "Blockchain Manufacturing Execution System and Method" after careful trial and research, and a spirit of perseverance. The above shortcomings can be overcome, and the following is a brief description of the present invention.

本發明係關於一種區塊鏈製造執行系統與方法,尤其是一種由在區塊鏈上執行之智能合約基於事件而驅動製造作業的一種去中心化製造執行系統與方法。 The present invention relates to a blockchain manufacturing execution system and method, particularly a decentralized manufacturing execution system and method that drives manufacturing operations based on events by smart contracts executed on the blockchain.

據此本發明提出一種區塊鏈製造執行系統,其包含:區塊鏈網路層,其包含第一鏈上節點、第二鏈上節點、由該第一鏈上節點與該第二鏈上節點共同維護之共通分類帳本以及共同執行之智能合約;生管製造層,其包含生管站以及工站,該生管站包含第一主機而該工站包含第二主 機以及生產製造設備;以及中介代理層,其包含連接該第一鏈上節點之生管端區塊鏈應用程式以及連接該第二鏈上節點之製造端區塊鏈應用程式,該生管端區塊鏈應用程式與該製造端區塊鏈應用程式分別配置於該第一主機與該第二主機上執行以將該生管製造層連結該區塊鏈網路層,其中該生管站或該工站發起事件而觸發該智能合約之執行與該共通分類帳本之更新,從而由該區塊鏈網路層驅動該生管製造層執行製造作業,以驅動該區塊鏈製造執行系統之運行。 Accordingly, the present invention proposes a blockchain manufacturing execution system, which includes: a blockchain network layer, which includes a node on the first chain, a node on the second chain, and a node on the first chain and a node on the second chain. A common ledger jointly maintained by nodes and a jointly executed smart contract; a production management layer, which includes a production management station and a work station. The production management station includes a first host and the work station includes a second host. machines and production and manufacturing equipment; and an intermediary agent layer, which includes a production-side blockchain application connected to the node on the first chain and a production-side blockchain application connected to the node on the second chain. The production-side blockchain application is connected to the node on the second chain. The blockchain application and the manufacturing-end blockchain application are respectively configured to execute on the first host and the second host to connect the production management and manufacturing layer to the blockchain network layer, wherein the production management station or The work station initiates an event to trigger the execution of the smart contract and the update of the common ledger, thereby driving the production management and manufacturing layer to execute manufacturing operations by the blockchain network layer to drive the blockchain manufacturing execution system. run.

據此本發明進一步提出一種區塊鏈製造執行方法,其包含:組建區塊鏈網路層,其包含第一鏈上節點、第二鏈上節點、由該第一鏈上節點與該第二鏈上節點共同維護之共通分類帳本以及共同執行之智能合約;配置生管製造層,其包含生管站以及工站,該生管站包含第一主機而該工站包含第二主機以及生產製造設備;建立中介代理層,其介於該區塊鏈網路層與該生管製造層之間,並包含連接該第一鏈上節點之生管端區塊鏈應用程式以及連接該第二鏈上節點之製造端區塊鏈應用程式;分別於該第一主機與該第二主機上執行該生管端區塊鏈應用程式與該製造端區塊鏈應用程式以將該生管製造層連結至該區塊鏈網路層;以及在該生管站或該工站發起事件而觸發該智能合約之執行與該共通分類帳本之更新,從而由該區塊鏈網路層驅動該生管製造層執行製造作業。 Accordingly, the present invention further proposes a blockchain manufacturing execution method, which includes: establishing a blockchain network layer, which includes a first chain node, a second chain node, the first chain node and the second chain node. A common ledger jointly maintained by nodes on the chain and a jointly executed smart contract; a production management and manufacturing layer is configured, which includes a production management station and a work station. The production management station includes the first host and the work station includes the second host and production Manufacturing equipment; establish an intermediary agent layer, which is between the blockchain network layer and the production management manufacturing layer, and includes a production management end blockchain application connected to the node on the first chain and a connection to the second The production-side blockchain application of the node on the chain; execute the production-side blockchain application and the production-side blockchain application on the first host and the second host respectively to integrate the production management and manufacturing layer Connect to the blockchain network layer; and initiate an event at the production management station or the work station to trigger the execution of the smart contract and the update of the common ledger, thereby driving the production by the blockchain network layer The tube manufacturing layer performs manufacturing operations.

上述發明內容旨在提供本揭示內容的簡化摘要,以使讀者對本揭示內容具備基本的理解,此發明內容並非揭露本發明的完整描述,且用意並非在指出本發明實施例的重要/關鍵元件或界定本發明的範圍。 The above summary is intended to provide a simplified summary of the disclosure to provide readers with a basic understanding of the disclosure. This summary is not a complete description of the disclosure, and is not intended to identify important/critical elements of the embodiments of the disclosure. Define the scope of the invention.

10:區塊鏈製造執行系統 10: Blockchain manufacturing execution system

20:主機 20:Host

30:主機 30:Host

40:主機 40:Host

41:主機 41:Host

50:主機 50:Host

60-62:主機 60-62: Host

100:區塊鏈網路層 100: Blockchain network layer

111-118:鏈上節點 111-118: Nodes on the chain

121:生管節點 121: Production and management node

122-123:製造節點 122-123: Manufacturing node

130:智能合約 130:Smart Contract

140:共通分類帳本 140: Common ledger

200:中介代理層 200: Intermediary agent layer

210:生管端區塊鏈應用程式 210: Production and management blockchain applications

212:使用者介面 212:User interface

215:生管端區塊鏈應用程式介面 215:Production and management end blockchain API

220-221:製造端區塊鏈應用程式 220-221: Manufacturing-side blockchain applications

222:生產製造設備客戶端模組 222: Manufacturing equipment client module

223:區塊鏈客戶端模組 223:Blockchain client module

225:製造端區塊鏈應用程式介面 225: Manufacturing Blockchain API

300:生管製造層 300: Pipe manufacturing layer

310:生管站主機 310: Production management station host

311:管理端 311: Management end

320-322:工站主機 320-322:Work station host

330-332:生產製造設備 330-332: Manufacturing equipment

MS:生管站 MS: Health Management Station

WS1:工站 WS1: Workstation

WS2:工站 WS2: Work station

WS3:工站 WS3: Workstation

WS4:工站 WS4:Workstation

150:生管節點 150: Production and management node

151-153:製造節點 151-153: Manufacturing node

250:生管端區塊鏈應用程式 250:Production-end blockchain application

251-253:製造端區塊鏈應用程式 251-253: Manufacturing-side blockchain applications

351-353:生產製造設備 351-353: Manufacturing equipment

160-162:鏈上節點 160-162: Nodes on the chain

260:生管端區塊鏈應用程式 260:Production and management blockchain application

261-262:製造端區塊鏈應用程式 261-262: Manufacturing-side blockchain applications

263:製造端區塊鏈應用程式 263: Manufacturing Blockchain Applications

361-362:生產製造設備 361-362: Manufacturing equipment

363:生產製造設備 363:Production and manufacturing equipment

170:生管節點 170: Production and management node

171-173:製造節點 171-173: Manufacturing nodes

270:生管端區塊鏈應用程式 270:Production and management-side blockchain applications

271-273:製造端區塊鏈應用程式 271-273: Manufacturing Blockchain Applications

371-373:生產製造設備 371-373: Manufacturing equipment

410:管理端 410: Management end

420:生管端區塊鏈應用程式 420:Production and management blockchain application

430:製造端區塊鏈應用程式 430: Manufacturing Blockchain Applications

440:自動倉儲站 440:Automatic storage station

450:組裝站 450:Assembly Station

460:載具 460:Vehicle

500:區塊鏈製造執行方法 500: Blockchain Manufacturing Execution Method

501~505:實施步驟 501~505: Implementation steps

第1圖揭示本發明包含之區塊鏈製造執行系統第一實施例之系統架構圖; Figure 1 shows the system architecture diagram of the first embodiment of the blockchain manufacturing execution system included in the present invention;

第2圖揭示本發明包含之區塊鏈製造執行系統第二實施例之系統架構圖; Figure 2 shows the system architecture diagram of the second embodiment of the blockchain manufacturing execution system included in the present invention;

第3圖揭示本發明包含之區塊鏈製造執行系統第三實施例之系統架構圖; Figure 3 shows the system architecture diagram of the third embodiment of the blockchain manufacturing execution system included in the present invention;

第4圖揭示本發明包含之區塊鏈製造執行系統第四實施例之系統架構圖; Figure 4 shows the system architecture diagram of the fourth embodiment of the blockchain manufacturing execution system included in the present invention;

第5圖揭示本發明包含之智能合約所包含之資源可用性驗證規則與事件驅動機制規則之實施例之時序圖; Figure 5 shows a sequence diagram of an embodiment of resource availability verification rules and event-driven mechanism rules included in the smart contract of the present invention;

第6圖揭示本發明包含之智能合約所包含之生產製造排程控制規則實施例之時序圖;以及 Figure 6 shows a sequence diagram of an embodiment of the production scheduling control rules included in the smart contract included in the present invention; and

第7圖揭示本發明包含之區塊鏈製造執行方法之實施步驟流程圖。 Figure 7 shows a flow chart of implementation steps of the blockchain manufacturing execution method included in the present invention.

本發明將可由以下的實施例說明而得到充分瞭解,使得熟習本技藝之人士可以據以完成之,然本發明之實施並非可由下列實施案例而被限制其實施型態;本發明之圖式並不包含對大小、尺寸與比例尺的限定,本發明實際實施時其大小、尺寸與比例尺並非可經由本發明之圖式而被限制。 The present invention will be fully understood from the following examples, so that those skilled in the art can implement it. However, the implementation of the present invention is not limited to its implementation form by the following examples; the drawings of the present invention are not There are no limitations on the size, dimensions and scale, and the size, dimensions and scale of the actual implementation of the present invention are not limited by the drawings of the present invention.

本文中用語“較佳”是非排他性的,應理解成“較佳為但不限於”,任何說明書或請求項中所描述或者記載的任何步驟可按任何順序執 行,而不限於請求項中所述的順序,本發明的範圍應僅由所附請求項及其均等方案確定,不應由實施方式示例的實施例確定;本文中用語“包含”及其變化出現在說明書和請求項中時,是一個開放式的用語,不具有限制性含義,並不排除其他特徵或步驟。 The word "preferably" used in this article is non-exclusive and should be understood as "preferably but not limited to". Any steps described or recorded in any specification or claim may be performed in any order. rows, and is not limited to the order stated in the claims. The scope of the present invention should be determined only by the appended claims and their equivalents, and should not be determined by the examples of implementation examples; the term "comprising" and its variations are used herein. When appearing in the description and claims, it is an open-ended term that does not have a restrictive meaning and does not exclude other features or steps.

第1圖揭示本發明包含之區塊鏈製造執行系統第一實施例之系統架構圖;本發明係提出一種區塊鏈製造執行系統(Blockchain-based Manufacturing Execution System,BMES)10,較佳是以區塊鏈網路為核心向外層次展開而擴展出一個虛擬且抽象之多層結構,包含至少區塊鏈網路層100、中介代理層200以及生管製造層300等,但本發明之實施不受限於多層結構。 Figure 1 shows the system architecture diagram of the first embodiment of the blockchain manufacturing execution system included in the present invention; the present invention proposes a blockchain-based manufacturing execution system (BMES) 10, preferably based on The blockchain network expands from the core outward to a virtual and abstract multi-layer structure, including at least the blockchain network layer 100, the intermediary agent layer 200, the production management layer 300, etc., but the implementation of the present invention does not Limited by multi-layer structure.

區塊鏈網路層100由分布在區塊鏈網路上的多個虛擬內部節點組成,內部節點的數量不限,但在本實施例以鏈上節點111-118為例說明,這些鏈上節點111-118較佳是公開的節點並組成公有鏈,任何人無須任何許可皆可匿名加入,但鏈上節點111-118也可能是需要經過許可之後才能加入的節點並組成私有鏈或鏈上自治系統,但在某實施例,一部分的鏈上節點111-118可能是公開節點而另一部分的鏈上節點111-118則是許可節點。 The blockchain network layer 100 is composed of multiple virtual internal nodes distributed on the blockchain network. The number of internal nodes is not limited. However, in this embodiment, the on-chain nodes 111-118 are used as an example. These on-chain nodes 111-118 are preferably public nodes and form a public chain. Anyone can join anonymously without any permission. However, nodes 111-118 on the chain may also be nodes that require permission to join and form a private chain or on-chain autonomy. system, but in some embodiments, part of the on-chain nodes 111-118 may be public nodes and another part of the on-chain nodes 111-118 may be permissioned nodes.

相對於區塊鏈網路層100,生管製造層300屬於位於客戶端的外部參與者,生管製造層300包含至少一生管站MS以及至少一工站WS1-WS3等,生管站MS之包含生管站主機310(第一主機)與管理端311,而工站WS1-WS3包含工站主機320-322(第二主機)以及至少一組生產製造設備330-332,生產製造設備330-332為實際執行生產製造作業的機台,例如但不限於:機械臂、CNC加工機、搬運機器人或紅外線自動設備等,工站WS1-WS3 較佳為例如但不限於:自動裝配站、裝配站、檢查站或者自動倉儲站等,管理端311是具有生產製造管理功能的後台,較佳是企業資源規劃(ERP)平台、高級規劃系統(APS)、有生之生管經理人或管理人員。 Relative to the blockchain network layer 100, the production management layer 300 belongs to an external participant located on the client side. The production management layer 300 includes at least a production management station MS and at least one work station WS1-WS3, etc. The production management station MS includes The production management station host 310 (the first host) and the management terminal 311, and the work stations WS1-WS3 include the work station hosts 320-322 (the second host) and at least one set of production and manufacturing equipment 330-332, the production and manufacturing equipment 330-332 They are machines that actually perform production and manufacturing operations, such as but not limited to: robotic arms, CNC processing machines, handling robots or infrared automatic equipment, etc. Workstations WS1-WS3 Preferably, it is for example but not limited to: automatic assembly station, assembly station, inspection station or automatic storage station, etc. The management terminal 311 is a backend with production and manufacturing management functions, preferably an enterprise resource planning (ERP) platform, an advanced planning system ( APS), life manager or manager.

管理端311的任務在於將採購訂單(PO)轉化為製造訂單(MO),為產品製定工作計劃(WP),然後將MO和WP交付給系統,MO的內容包含PO中產品的項目和數量,WP描述了從起始原材料到最終產品的所有轉變,包括所需的資源和工藝參數,系統收到MO和WP後,會生成報工單(WO)並提供給工站。 The task of the management end 311 is to convert the purchase order (PO) into a manufacturing order (MO), develop a work plan (WP) for the product, and then deliver the MO and WP to the system. The content of the MO includes the items and quantities of the products in the PO. WP describes all transformations from starting raw materials to final products, including required resources and process parameters. After the system receives MO and WP, it will generate a work order (WO) and provide it to the work station.

在整個區塊鏈製造執行系統10中,WO是一種數位指引也是相對重要的資訊,WO將指引實際的在製品(Work in Process,WIP)如何生產,並控制生產過程,且紀錄產品之生產過程與實際生產狀態,因此WO與WIP兩者在製造過程必須時刻同步,確保資訊與實際情況一致。 In the entire blockchain manufacturing execution system 10, WO is a digital guide and is relatively important information. WO will guide how to produce the actual work in process (WIP), control the production process, and record the production process of the product. and actual production status, so both WO and WIP must be synchronized at all times during the manufacturing process to ensure that the information is consistent with the actual situation.

中介代理層200係介於生管製造層300與區塊鏈網路層100間,並做為兩層之間的資料格式與資料交換的媒介代理人(agent),以將生管製造層300連結到區塊鏈網路層100,使生管製造層300中的外部參與者可以連結區塊鏈網路層100中的任何一個鏈上節點111-118,中介代理層200具體是以透過區塊鏈API編譯的去中心化應用程式(decentralized application program,DApp)而實現,DApp包含生管端區塊鏈應用程式210與製造端區塊鏈應用程式220-221等兩種型態。 The intermediary agent layer 200 is between the production management layer 300 and the blockchain network layer 100, and serves as an intermediary agent for data format and data exchange between the two layers to connect the production management layer 300 Connecting to the blockchain network layer 100 allows external participants in the production management layer 300 to connect to any on-chain node 111-118 in the blockchain network layer 100. The intermediary agent layer 200 specifically uses It is implemented by decentralized application program (DApp) compiled by blockchain API. DApp includes two types: production-end blockchain application 210 and manufacturing-end blockchain application 220-221.

在初始狀態,每一個鏈上節點111-118都是平等與相同的區塊鏈節點,但每一個鏈上節點111-118因應來自透過中介代理層200所接入的一個或多個客戶端所取得的不同授權內容,每一個鏈上節點111-118將對應 執行一個或多個相同或不同的有限任務,使得每一個鏈上節點111-118產生功能上差異。 In the initial state, each on-chain node 111-118 is an equal and identical blockchain node, but each on-chain node 111-118 responds to requests from one or more clients accessed through the intermediary proxy layer 200. The different authorized content obtained will be corresponding to each node 111-118 on the chain. Execute one or more limited tasks that are the same or different, making each node 111-118 on the chain functionally different.

舉例來說,當某鏈上節點112是連結取得生管任務授權的單一客戶端時,某鏈上節點112將用於執行生管任務並被視為生管節點,當某鏈上節點112是連結取得製造任務授權的單一客戶端時,某鏈上節點112將用於執行單一製造任務並被視為製造節點,當某鏈上節點112是同時連結取得不同製造任務授權的多個客戶端時,某鏈上節點112將用於同時執行多個製造任務並被視為複合製造節點,當某鏈上節點112是同時連結分別取得生管任務授權與製造任務授權的不同客戶端時,某鏈上節點112將用於同時執行生管任務與製造任務並被視為複合生管製造節點。 For example, when a certain on-chain node 112 is a single client that is connected to obtain authorization for production and management tasks, a certain on-chain node 112 will be used to perform production and management tasks and is regarded as a production and management node. When a certain on-chain node 112 is When connecting to a single client that has obtained manufacturing task authorization, a certain on-chain node 112 will be used to perform a single manufacturing task and is regarded as a manufacturing node. When a certain on-chain node 112 is simultaneously connected to multiple clients that have obtained different manufacturing task authorizations. , a certain chain node 112 will be used to perform multiple manufacturing tasks at the same time and is regarded as a composite manufacturing node. When a certain chain node 112 is simultaneously connected to different clients that have obtained production management task authorization and manufacturing task authorization respectively, a certain chain The upper node 112 will be used to simultaneously perform pipe production tasks and manufacturing tasks and is regarded as a composite pipe production node.

在第一實施例,當客戶端發起交易時,生管端區塊鏈應用程式210隨機連結任意一個鏈上節點111-118作為生管節點,製造端區塊鏈應用程式220-221亦將隨機連結任意多個鏈上節點111-118作為製造節點,在本實施例,為便於解說,當客戶端發起交易時,鏈上節點111是生管端區塊鏈應用程式210連結的節點並作為對應的生管節點121,而鏈上節點118是製造端區塊鏈應用程式220連結的節點並作為對應的製造節點122,鏈上節點115是製造端區塊鏈應用程式221連結的節點並作為對應的製造節點123。 In the first embodiment, when the client initiates a transaction, the production-side blockchain application 210 randomly connects any on-chain node 111-118 as a production-management node, and the production-side blockchain application 220-221 will also randomly connect Any number of on-chain nodes 111-118 are connected as manufacturing nodes. In this embodiment, for the convenience of explanation, when the client initiates a transaction, the on-chain node 111 is the node connected by the production-end blockchain application 210 and serves as the corresponding node. The production management node 121 of Manufacturing node 123.

舉例來說,在第一實施例,每一個鏈上節點111-118只連結一個客戶端,因此每一個鏈上節點111-118將作為生管節點或者製造節點,當連結鏈上節點113的客戶端所取得的授權為生產管理授權時,則鏈上節點113將是生管端區塊鏈應用程式210連結的節點並作為對應的生管節點,但是當連結鏈上節點113的客戶端所取得的授權為生產製造授權時,則鏈上節 點113將是製造端區塊鏈應用程式220連結的節點並作為對應的製造節點,每一個鏈上節點111-118是因應客戶端的不同授權而執行不同任務而產生功能上的區別。 For example, in the first embodiment, each on-chain node 111-118 is only connected to one client, so each on-chain node 111-118 will serve as a production management node or a manufacturing node. When the client connected to on-chain node 113 When the authorization obtained by the client is a production management authorization, the node 113 on the chain will be the node connected to the production management end blockchain application 210 and serve as the corresponding production management node. However, when the client connected to the node 113 on the chain obtains When the authorization is a manufacturing authorization, the link in the chain Point 113 will be the node connected to the manufacturing-side blockchain application 220 and serve as the corresponding manufacturing node. Each node 111-118 on the chain performs different tasks due to different authorizations from the client, resulting in functional differences.

概括來說,生管端區塊鏈應用程式210能夠賦予鏈上節點111-118之功能在於協助生管站之管理者掌握整體系統的運作,包含管理數位資產、建立工作計畫、起始化製造訂單、產生報工單、及取得生產進度,製造端區塊鏈應用程式220-221能夠賦予鏈上節點111-118之功能在於指揮對應的工站執行操作任務,並收集生產進度。 In summary, the function that the production and management end blockchain application 210 can give to the nodes 111-118 on the chain is to assist the administrator of the production and management station to master the operation of the overall system, including managing digital assets, establishing work plans, and initialization To manufacture orders, generate work orders, and obtain production progress, the manufacturing-side blockchain application 220-221 can give the nodes 111-118 on the chain the function of commanding the corresponding work station to perform operation tasks and collect production progress.

在本實施例,生管端區塊鏈應用程式210係配置於管理端311與生管節點121之間,並作為管理端311連接生管節點121之生管端區塊鏈應用程式介面215,其功能包含至少用於將MO導入區塊鏈系統且回報進度給管理端311以及整體生產流程之管理,製造端區塊鏈應用程式220-221係配置於工站WS1-WS3和製造節點122-123之間用以在工站WS1-WS3和製造節點122-123之間進行訊息交換,並作為工站WS1-WS3連接製造節點122-123之製造端區塊鏈應用程式介面225,其功能包含至少追蹤生產進度且根據報工單操作設備與控制機台運作。 In this embodiment, the production and management end blockchain application 210 is configured between the management end 311 and the production and management node 121, and serves as the production and management end blockchain application interface 215 for the management end 311 to connect to the production and management node 121. Its functions include at least importing MO into the blockchain system and reporting progress to the management end 311 and management of the overall production process. The manufacturing end blockchain application 220-221 is configured at the work station WS1-WS3 and the manufacturing node 122- 123 is used to exchange information between work stations WS1-WS3 and manufacturing nodes 122-123, and serves as the manufacturing-end blockchain application interface 225 for work stations WS1-WS3 to connect to manufacturing nodes 122-123. Its functions include At least track production progress and operate equipment and control machine operations according to work orders.

生管端區塊鏈應用程式210還選擇性包含一個使用者介面212,較佳是透過網路瀏覽器(browser)而提供的網頁式使用者介面(web based UI),當管理端311是管理人員或者生管經理人等有生人員(alive personnel)時,就可以透過使用者介面212進行操作。每一個製造端區塊鏈應用程式220-221還包含至少一個生產製造設備客戶端模組222與一個區塊鏈客戶端模組223,生產製造設備客戶端模組222作為接取生產製造設備 330-332資訊的轉接器(adapter),可連上對應的生產製造設備330-332且取得必要資料或控制設備之作動,區塊鏈客戶端模組223是生產製造設備330-332與智能合約130之間的代理人,製造節點122-123可透過生產製造設備客戶端模組222與生產製造設備330-332互動,並透過區塊鏈客戶端223讀取或操作智能合約130。 The production management side blockchain application 210 also optionally includes a user interface 212, preferably a web based UI provided through a web browser (browser). When the management side 311 is a management When there are live personnel such as personnel or production management managers, the operation can be performed through the user interface 212. Each manufacturing-side blockchain application 220-221 also includes at least one manufacturing equipment client module 222 and one blockchain client module 223. The manufacturing equipment client module 222 is used to access the manufacturing equipment. The adapter of 330-332 information can connect to the corresponding manufacturing equipment 330-332 and obtain necessary data or control the operation of the equipment. The blockchain client module 223 is the connection between the manufacturing equipment 330-332 and the intelligent system. The agents between the contracts 130, the manufacturing nodes 122-123 can interact with the manufacturing equipment 330-332 through the production equipment client module 222, and read or operate the smart contract 130 through the blockchain client 223.

在本實施例,所有的工站主機320-322具備共通之通訊介面,以加速區塊鏈網路層100與工站WS1-WS3之間的資料交換與通訊速度,提升區塊鏈製造執行系統10之整體效率,較佳的,所有的工站主機320-322皆使用具備相同資訊模型的例如但不限於開放程式統一架構伺服器(OPC UA server),當所有的工站主機320-322皆為相同伺服器時,製造端區塊鏈應用程式220-221也將具有通用部分,有利於工站間連接和通信的整合。工站主機320-322也可以內建在生產製造設備330-332內部。 In this embodiment, all workstation hosts 320-322 have a common communication interface to accelerate the data exchange and communication speed between the blockchain network layer 100 and the workstations WS1-WS3, thereby improving the blockchain manufacturing execution system. 10. For overall efficiency, it is better that all workstation hosts 320-322 use the same information model such as but not limited to the Open Program Unified Architecture server (OPC UA server). When all workstation hosts 320-322 When using the same server, the manufacturing-side blockchain applications 220-221 will also have common parts, which is beneficial to the integration of connections and communications between work stations. The workstation host 320-322 can also be built into the production equipment 330-332.

在本實施例,生管端區塊鏈應用程式210較佳是安裝在生管站主機310上執行,並將使用者介面212提供給管理人操作。製造端區塊鏈應用程式220是安裝在工站主機320上執行,並控制生產製造設備330如CNC加工機,在本實施例,生產製造設備331-332較佳皆為如機械臂,可以透過相同的製造端區塊鏈應用程式221加以控制,工站主機321-332上分別安裝並執行相同的製造端區塊鏈應用程式221。 In this embodiment, the production management end blockchain application 210 is preferably installed and executed on the production management station host 310, and provides the user interface 212 for the administrator to operate. The manufacturing-side blockchain application 220 is installed and executed on the workstation host 320, and controls the production and manufacturing equipment 330 such as a CNC processing machine. In this embodiment, the production and manufacturing equipment 331-332 are preferably all robotic arms, which can be The same manufacturing-side blockchain application 221 is controlled, and the same manufacturing-side blockchain application 221 is installed and executed on the workstation hosts 321-332 respectively.

第2圖揭示本發明包含之區塊鏈製造執行系統第二實施例之系統架構圖;第3圖揭示本發明包含之區塊鏈製造執行系統第三實施例之系統架構圖;第4圖揭示本發明包含之區塊鏈製造執行系統第四實施例之系統架構圖;在實務應用場景中,區塊鏈製造執行系統10包含的去中心化應用 程式包含生管端區塊鏈應用程式與製造端區塊鏈應用程式、內部節點包含生管節點與製造節點、工站、生產製造設備與主機之間,包含多元的可能配置型態。 Figure 2 reveals the system architecture diagram of the second embodiment of the blockchain manufacturing execution system included in the present invention; Figure 3 reveals the system architecture diagram of the third embodiment of the blockchain manufacturing execution system included in the present invention; Figure 4 reveals System architecture diagram of the fourth embodiment of the blockchain manufacturing execution system included in the present invention; in practical application scenarios, the decentralized application included in the blockchain manufacturing execution system 10 The program includes production and management end blockchain applications and manufacturing end blockchain applications. Internal nodes include production and management nodes and manufacturing nodes, workstations, production and manufacturing equipment and hosts, including multiple possible configuration types.

在如第2圖所揭示的第二實施例中,是一種考慮成本的配置方式,所有的去中心化應用程式包含生管端區塊鏈應用程式250與製造端區塊鏈應用程式251-253以及生管節點150與製造節點151-153,是全部集中配置在同一台主機20上執行,每一個製造端區塊鏈應用程式251-253對應控制一部生產製造設備351-353。 In the second embodiment as shown in Figure 2, which is a cost-considered configuration, all decentralized applications include a production management-side blockchain application 250 and a manufacturing-side blockchain application 251-253. As well as the production management node 150 and the manufacturing nodes 151-153, they are all centrally configured and executed on the same host 20. Each manufacturing-side blockchain application 251-253 correspondingly controls a production and manufacturing equipment 351-353.

在如第3圖所揭示的第三實施例中,生管端區塊鏈應用程式260與鏈上節點160是配置在單一台主機30上執行,鏈上節點160連結取得生管授權的單一客戶端即生管端區塊鏈應用程式260,鏈上節點160因此成為一個生管節點。 In the third embodiment as shown in Figure 3, the production and management end blockchain application 260 and the on-chain node 160 are configured to execute on a single host 30, and the on-chain node 160 is connected to a single client that has obtained the production and management authorization. The end-to-end blockchain application 260 is generated and managed, and the node 160 on the chain therefore becomes a generated and managed node.

另一台主機40上配置有單一個鏈上節點161,但是在本實施例,鏈上節點161連結分別取得不同製造授權的兩個客戶端,即兩個製造端區塊鏈應用程式261-262,雖然兩個客戶端皆取得生產製造授權但須執行不同製造任務,因此鏈上節點161將同時作為執行不同製造任務的複合製造節點,但值得注意的是,鏈上節點161所連結的兩個客戶端,也可以分別是取得生管授權與製造授權的兩個客戶端,則鏈上節點161將成為同時執行生管任務與製造任務的複合生管製造節點。 Another host 40 is configured with a single on-chain node 161, but in this embodiment, the on-chain node 161 connects two clients that have obtained different manufacturing authorizations, that is, two manufacturing-side blockchain applications 261-262 , although both clients have obtained manufacturing authorization but need to perform different manufacturing tasks, so the node 161 on the chain will simultaneously serve as a composite manufacturing node that performs different manufacturing tasks. However, it is worth noting that the two nodes connected by the node 161 on the chain The client can also be two clients that have obtained production management authorization and manufacturing authorization respectively. Then the node 161 on the chain will become a composite production management manufacturing node that simultaneously performs production management tasks and manufacturing tasks.

另一台主機41上配置有單一個鏈上節點162,單一個鏈上節點162連結取得製造授權的製造端區塊鏈應用程式263,在本實施例,製造端區塊鏈應用程式261-262分別控制一部生產製造設備361-362,製造端區塊 鏈應用程式263控制一部生產製造設備363,工站WS4是由兩部生產製造設備361-362組成。 Another host 41 is configured with a single on-chain node 162. The single on-chain node 162 is connected to the manufacturing-side blockchain application 263 that has obtained manufacturing authorization. In this embodiment, the manufacturing-side blockchain applications 261-262 Control a production and manufacturing equipment 361-362 respectively, and the manufacturing end block The chain application 263 controls one manufacturing equipment 363, and the workstation WS4 is composed of two manufacturing equipments 361-362.

在如第4所揭示的第四實施例中,則是在每個設備上都配置主機與節點,單一台主機50上配置有單一個生管節點170與單一個生管端區塊鏈應用程式270,每一台主機60-62上分別配置有單一個製造節點171-173與單一個製造端區塊鏈應用程式271-273,而每一個製造端區塊鏈應用程式271-273負責控制單一部生產製造設備371-373,第四實施例的配置能發揮區塊鏈最好的性能,但建置成本相對昂貴。 In the fourth embodiment as disclosed in Section 4, a host and a node are configured on each device, and a single host 50 is configured with a single production management node 170 and a single production management end blockchain application. 270, each host 60-62 is configured with a single manufacturing node 171-173 and a single manufacturing-end blockchain application 271-273, and each manufacturing-end blockchain application 271-273 is responsible for controlling a single The configuration of the fourth embodiment of the internal production and manufacturing equipment 371-373 can bring out the best performance of the blockchain, but the construction cost is relatively expensive.

智能合約130與共通分類帳本140是存在於區塊鏈網路層100中,區塊鏈網路層100包含的所有內部節點包含生管節點121與製造節點122-123將共同執行智能合約130與共同維護共通分類帳本140。 The smart contract 130 and the common ledger 140 exist in the blockchain network layer 100. All internal nodes included in the blockchain network layer 100, including the production management node 121 and the manufacturing nodes 122-123, will jointly execute the smart contract 130. and jointly maintain a common ledger book 140.

智能合約130是部署(deploy)在許可鏈上的自主數位程序,內容涵蓋許可鏈上的所有數位化協議和規則,較佳是相關於生管製造的數位化協議和規則,用於規範區塊鏈網路層100以外之所有外部參與者的行為,協議包含至少一個檢核單,來自生管節點121與製造節點122-123的所有的查詢或交易,都必須滿足檢核單的內容,才能允許取得或更新共通分類帳本140中的內容。 The smart contract 130 is an autonomous digital program deployed on the permissioned chain. The content covers all digital protocols and rules on the permissioned chain. Preferably, the digital protocols and rules related to production management are used to regulate the block. The protocol contains at least one checklist for the behavior of all external participants outside the chain network layer 100. All inquiries or transactions from the production management node 121 and the manufacturing nodes 122-123 must meet the contents of the checklist before they can Allows the content in the common ledger 140 to be obtained or updated.

智能合約130較佳是由例如但不限於:Solidity、Serpent、LLL、EtherScript、Sidechain、Python、JavaScript等程式語言所撰寫與編譯,並由不同函式(function)、事件(event)與參數狀態等組成。 The smart contract 130 is preferably written and compiled by programming languages such as but not limited to: Solidity, Serpent, LLL, EtherScript, Sidechain, Python, JavaScript, etc., and consists of different functions, events, parameter states, etc. composition.

在本實施例,智能合約較佳使用Hyperledger Fabric(HLF)之chaincode建立,並做為本發明區塊鏈製造執行系統10的系統執行核心,HLF 屬於Linux基金會開放原始碼專案,非常適合SMEs之相關應用,具有開放性架構、良好效率且無須礦工(miner)或驗證者(validator)挖礦等特性。 In this embodiment, the smart contract is preferably established using the chaincode of Hyperledger Fabric (HLF), and serves as the system execution core of the blockchain manufacturing execution system 10 of the present invention. HLF It is an open source project of the Linux Foundation and is very suitable for SMEs-related applications. It has the characteristics of an open architecture, good efficiency, and does not require miners or validators for mining.

事件驅動機制是讓區塊鏈製造執行系統10達成自主運行的關鍵。當生管節點121與製造節點122-123對應的合約地址在智能合約130中完成註冊後,各節點的主機便根據合約地址執行智能合約130,生管製造層300中的任何一個生管站或任何一個工站發起的任何事件,都將透過去中心化應用程式上傳區塊鏈網路層100中的對應節點,並觸發智能合約130之執行或共通分類帳本140之更新,從而由區塊鏈網路層100驅動整個區塊鏈製造執行系統10之運行。 The event-driven mechanism is the key to enabling the blockchain manufacturing execution system 10 to operate autonomously. When the contract addresses corresponding to the production management node 121 and the manufacturing nodes 122-123 are registered in the smart contract 130, the host of each node executes the smart contract 130 according to the contract address, and any production management station in the production management layer 300 or Any event initiated by any station will be uploaded to the corresponding node in the blockchain network layer 100 through the decentralized application, and trigger the execution of the smart contract 130 or the update of the common ledger 140, thus starting from the block The chain network layer 100 drives the operation of the entire blockchain manufacturing execution system 10.

共通分類帳本140中的任何資料更新都將觸發區塊鏈共識機制,並將結果更新至所有節點包含生管節點121與製造節點122-123所保管的帳本,智能合約130還可以發布事件消息給所有的節點包含生管節點121與製造節點122-123。 Any data update in the common ledger 140 will trigger the blockchain consensus mechanism and update the results to the ledgers kept by all nodes including the production management node 121 and the manufacturing nodes 122-123. The smart contract 130 can also publish events. The message is sent to all nodes including the production management node 121 and the manufacturing nodes 122-123.

第5圖揭示本發明包含之智能合約所包含之資源可用性驗證規則與事件驅動機制規則之實施例之時序圖(sequence diagram);智能合約130中設定的規則可用於控制區塊鏈製造執行系統10的整個生產過程,並達到以智能合約130設定的事件驅動機制來運行整個製造系統。 Figure 5 shows a sequence diagram of an embodiment of the resource availability verification rules and event-driven mechanism rules included in the smart contract of the present invention; the rules set in the smart contract 130 can be used to control the blockchain manufacturing execution system 10 The entire production process, and achieve the event-driven mechanism set by the smart contract 130 to run the entire manufacturing system.

在本實施例以報工單之接受作為驅動事件為例說明,首先管理端410向生管端區塊鏈應用程式420傳送製造訂單(MO),生管端區塊鏈應用程式420接收MO之後將MO的資料轉換為報工單(WO)資料,並向智能合約130承諾WO,智能合約130收到WO之後將驗證系統資源可用性是否足以完成WO。 In this embodiment, the acceptance of a work order is used as the driving event as an example. First, the management end 410 transmits a manufacturing order (MO) to the production and management end blockchain application 420. After the production and management end blockchain application 420 receives the MO, Convert the MO data into work order (WO) data, and promise the WO to the smart contract 130. After receiving the WO, the smart contract 130 will verify whether the system resource availability is sufficient to complete the WO.

以下為選擇性程序(alt),當智能合約130經驗證後確認系統資源可用性不足以完成WO時,智能合約130向生管端區塊鏈應用程式420發送拒絕碼以拒絕此WO之執行,生管端區塊鏈應用程式420接著向管理端410發送拒絕訊息,以通知管理端410此WO之拒絕。 The following is an optional procedure (alt). When the smart contract 130 confirms that the system resource availability is insufficient to complete the WO after verification, the smart contract 130 sends a rejection code to the production-end blockchain application 420 to refuse the execution of the WO. The pipe-side blockchain application 420 then sends a rejection message to the management side 410 to notify the management side 410 of the rejection of the WO.

當智能合約130經驗證後確認系統資源可用性足以完成WO時,智能合約130在許可鏈上執行共識機制以發佈並更新共通分類帳本140,並向許可鏈包含之所有內部節點發佈接受此WO,發佈過程中,智能合約130會自動檢查分類帳本中是否對應的資源,如果產品沒有對應的工作計畫(WP)、機台的信息或充分的物料,則智能合約130會通知對應的管理者交付對應的資源。 When the smart contract 130 confirms that the system resource availability is sufficient to complete the WO after verification, the smart contract 130 executes the consensus mechanism on the permission chain to publish and update the common ledger 140, and publishes acceptance of this WO to all internal nodes included in the permission chain, During the publishing process, the smart contract 130 will automatically check whether there are corresponding resources in the ledger. If the product does not have a corresponding work plan (WP), machine information or sufficient materials, the smart contract 130 will notify the corresponding manager. Deliver the corresponding resources.

當確認一切準備就緒後,智能合約130將批准WO的交易,由於智能合約130已經將WO之接受預先定義為驅動事件,因此WO接受對智能合約130而言是驅動事件並向所有節點發佈此驅動事件,並向生管端區塊鏈應用程式420發送接受碼以通知此WO之接受,生管端區塊鏈應用程式420接著向管理端410發送接受訊息,以通知管理端410此WO之接受,WO之接受此一驅動事件將觸發區塊鏈製造執行系統10之運作。 When everything is confirmed to be ready, the smart contract 130 will approve the WO transaction. Since the smart contract 130 has pre-defined the acceptance of WO as a driving event, the WO acceptance is a driving event for the smart contract 130 and publishes this driver to all nodes. event, and sends an acceptance code to the production management end blockchain application 420 to notify the acceptance of this WO. The production management end blockchain application 420 then sends an acceptance message to the management end 410 to notify the management end 410 of the acceptance of this WO. , WO's acceptance of this driving event will trigger the operation of the blockchain manufacturing execution system 10.

第6圖揭示本發明包含之智能合約所包含之生產製造排程控制規則實施例之時序圖;當WO交易提交後,智能合約130進入WO接受狀態,並透過製造端區塊鏈應用程式430通知多個工站包含自動倉儲站440與組裝站450進入WO接受狀態。 Figure 6 shows a sequence diagram of an embodiment of the production scheduling control rules included in the smart contract of the present invention; when the WO transaction is submitted, the smart contract 130 enters the WO acceptance state and is notified through the manufacturing-side blockchain application 430 Multiple workstations including the automatic storage station 440 and the assembly station 450 enter the WO acceptance state.

接著,生管端區塊鏈應用程式420啟動WO之執行因而改變WO的狀態,智能合約130進入WO狀態更新,在整個生產過程,WO狀態將 持續隨著製造進度而不斷改變,智能合約130將持續透過共識機制不斷更新對應的共通分類帳本140與WO狀態。 Then, the production and management end blockchain application 420 starts the execution of WO and changes the status of WO. The smart contract 130 enters the WO status update. During the entire production process, the WO status will be Continuously changing with the manufacturing progress, the smart contract 130 will continue to update the corresponding common ledger 140 and WO status through the consensus mechanism.

然後智能合約130將提示負責的工站自主運行,例如,自動倉儲站440通常是第一個工站,自動倉儲站440將根據WO內容將指定的材料分配給特定的載具460,並將WO與材料之間的綁定關係寫入對應的賬本,然後將材料釋放到載具460上,將材料運送到下一個工站。接著組裝站450開始執行WIP的製造生產,直到WIP成為最終的產品而結束製造。 Then the smart contract 130 will prompt the responsible work station to run autonomously. For example, the automatic storage station 440 is usually the first work station. The automatic storage station 440 will allocate the specified materials to the specific vehicle 460 according to the WO content, and transfer the WO The binding relationship with the material is written into the corresponding ledger, and then the material is released onto the vehicle 460 to transport the material to the next work station. Then the assembly station 450 starts to perform the manufacturing production of the WIP until the WIP becomes the final product and the manufacturing is completed.

在製造過程中,組裝站450將依照WO中的定義,執行每一個生產操作(OP),每一個生產操作(OP)的開始或完成,也會透過智能合約130更新共通分類帳本140包含的WO,在製造過程中,必須使WIP和WO兩者隨時保持同步,WO內容與生產線上WIP的實際情況一致,確保WO紀錄到的資訊準確無誤。 During the manufacturing process, the assembly station 450 will execute each production operation (OP) according to the definition in WO. The start or completion of each production operation (OP) will also update the information contained in the common ledger 140 through the smart contract 130 WO, during the manufacturing process, WIP and WO must be synchronized at all times. The content of WO is consistent with the actual situation of WIP on the production line to ensure that the information recorded by WO is accurate.

最後,智能合約130將更新的內容發佈給所有節點,包含生管端區塊鏈應用程式420與製造端區塊鏈應用程式430,因此生管端可以即時收集、掌握和審查整個生產進度。當材料到達工站時,被通知的工站會自動執行對應的操作,這個迴圈將一直持續到WO上的所有操作都完成為止。 Finally, the smart contract 130 publishes the updated content to all nodes, including the production and management end blockchain application 420 and the manufacturing end blockchain application 430, so the production and management end can collect, grasp and review the entire production progress in real time. When the material arrives at the work station, the notified work station will automatically perform the corresponding operation. This loop will continue until all operations on WO are completed.

智能合約130中的協議與規則包含至少以下特性: The protocols and rules in smart contracts 130 include at least the following characteristics:

(一)識別唯一性:在本發明BMES中,在帳本內所有的物件均帶有唯一識別碼。新加入的製造訂單編號、產品工作計畫代號、工站代號或操作代號都不得與帳本內現有物件衝突。 (1) Identification uniqueness: In the BMES of the present invention, all objects in the account book have unique identification codes. The newly added manufacturing order number, product work plan code, work station code or operation code must not conflict with existing objects in the ledger.

(二)資源可用性:當ERP交付製造訂單時,智能合約會根據 製造訂單的內容,比對帳本內的資訊以確保訂單實行的資源需求,包含產品對應的工作計畫、工作計畫需要的工站、以及操作參數在工站上的可執行性。 (2) Resource availability: When ERP delivers a manufacturing order, the smart contract will The content of the manufacturing order is compared with the information in the ledger to ensure the resource requirements for order execution, including the work plan corresponding to the product, the work station required for the work plan, and the executability of the operating parameters on the work station.

(三)報工正確性:當MO執行時,BMES會根據WO上的循序通知工站。只有被通知的工站才能啟用權限更新WO的進度。回報工作時,工站應提供相關資源的證據,可能包含指定的操作員、物料、製程參數等。當一個工站回報完工進度後,BMES會通知下一個工站並啟用它的權限。 (3) Correctness of work reporting: When MO is executed, BMES will notify the work station according to the sequence on WO. Only the notified stations can enable permission to update the progress of WO. When reporting work, the work station should provide evidence of relevant resources, which may include designated operators, materials, process parameters, etc. When a work station reports the completion progress, BMES will notify the next work station and enable its permissions.

共通分類帳本140包含至少四種基於不同主題之資料集合之分類帳本: The common ledger 140 includes at least four ledgers based on data collections of different topics:

(一)設備帳本(machine ledger):工站資料集合用於管理BMES控制下的工站資料。主要數據包括名稱、地址、可執行之操作及其參數規範。此外,管理人可以添加或刪除工站資料。 (1) Equipment ledger (machine ledger): Work station data collection is used to manage work station data under the control of BMES. The main data includes name, address, executable operations and parameter specifications. In addition, administrators can add or delete station information.

(二)工作計畫帳本(work plan ledger):工作計劃資料集合用於保存生產產品的工作計劃資料。工作計劃資料包括其名稱、操作及操作的順序。每個操作內容都必須列出所需的工站與操作參數。 (2) Work plan ledger: Work plan data collection is used to save work plan data for production products. Work plan information includes its name, operations and sequence of operations. Each operation must list the required workstations and operating parameters.

(三)訂單帳本(order ledger):製造訂單資料集合用於管理從ERP中獲取MO。製造訂單資料包含需求的產品、所需數量及其工作計劃。 (3) Order ledger: The collection of manufacturing order data is used to manage the acquisition of MO from ERP. Manufacturing order data contains required products, required quantities, and their work schedule.

(四)報工單帳本(work order ledger):報工單資料集合用於管理在製品(work in process,WIP),記錄WIP狀態、循環開始和結束的時間戳、機器和操作參數。 (4) Work order ledger: Work order data collection is used to manage work in process (WIP), recording WIP status, cycle start and end timestamps, machine and operating parameters.

本發明採用JSON格式建立共通分類帳本140之動態結構帳 本,可以根據現場作業需求或管理方式調整資料內容,使得區塊鏈製造執行系統10有能力針對各種生產型態快速回應並定義其資料結構,包含流水線、零工式或專案等生產管理方式,動態結構帳本能夠透過智能合約升級以符合企業的最新需求。 The present invention uses JSON format to establish a dynamic structure account of the common ledger book 140 This allows the data content to be adjusted according to on-site operation requirements or management methods, so that the blockchain manufacturing execution system 10 has the ability to quickly respond to various production types and define its data structure, including production management methods such as assembly lines, odd-job or project-based, dynamic The structured ledger can be upgraded through smart contracts to meet the latest needs of enterprises.

第7圖揭示本發明包含之區塊鏈製造執行方法之實施步驟流程圖;小結而言,本發明區塊鏈製造執行方法500,較佳包含但不限於下列步驟:組建區塊鏈網路層,其包含第一鏈上節點、第二鏈上節點、由該第一鏈上節點與該第二鏈上節點共同維護之共通分類帳本以及共同執行之智能合約(步驟501);配置生管製造層,其包含生管站以及工站,該生管站包含第一主機而該工站包含第二主機以及生產製造設備(步驟502);建立中介代理層,其介於該區塊鏈網路層與該生管製造層之間,並包含連接該第一鏈上節點之生管端區塊鏈應用程式以及連接該第二鏈上節點之製造端區塊鏈應用程式(步驟503);分別於該第一主機與該第二主機上執行該生管端區塊鏈應用程式與該製造端區塊鏈應用程式以將該生管製造層連結至該區塊鏈網路層(步驟504);以及在該生管站或該工站發起事件而觸發該智能合約之執行與該共通分類帳本之更新,從而由該區塊鏈網路層驅動該生管製造層執行製造作業(步驟505)。 Figure 7 shows a flow chart of the implementation steps of the blockchain manufacturing execution method included in the present invention; in summary, the blockchain manufacturing execution method 500 of the present invention preferably includes but is not limited to the following steps: Establishing a blockchain network layer , which includes a node on the first chain, a node on the second chain, a common ledger jointly maintained by the node on the first chain and the node on the second chain, and a jointly executed smart contract (step 501); configuration production management The manufacturing layer includes a production and management station and a work station. The production and management station includes a first host and the work station includes a second host and production and manufacturing equipment (step 502); an intermediary agent layer is established, which is between the blockchain network Between the road layer and the production management and manufacturing layer, it includes a production-side blockchain application connected to the node on the first chain and a manufacturing-side blockchain application connected to the node on the second chain (step 503); Execute the production management-side blockchain application and the production-side blockchain application on the first host and the second host respectively to connect the production management and manufacturing layer to the blockchain network layer (step 504 ); and initiating an event at the production and management station or the work station triggers the execution of the smart contract and the update of the common ledger, thereby driving the production and management manufacturing layer to perform manufacturing operations by the blockchain network layer (step 505).

本發明提出之區塊鏈製造執行系統(BMES)還具備以下特色: The blockchain manufacturing execution system (BMES) proposed by this invention also has the following features:

(一)系統架構:在傳統商用的製造執行系統(MES)中,會建立一個中央伺服器來控制及監控工廠內每部機台狀況,所有機台都須向中央回報現況狀態。中央伺服器主要為接收資料、分析資料及回報動作,為 中心化系統。為了避免MES失效對工廠造成影響,往往會設置雙系統本地備援或進一步採用混合雲架構,減少與縮短MES失效對工廠的影響,但會增加企業成本。在本發明中的BMES系統為基於區塊鏈建置而成,在區塊鏈中的帳本為各個節點建置而成,所有資料分散於各節點中,並沒有一個中央伺服器管理帳本,而是所有節點共同維護,為去中心化系統,同時在去中心化架構下的成本會較中心化便宜許多。 (1) System architecture: In traditional commercial manufacturing execution systems (MES), a central server will be established to control and monitor the status of each machine in the factory, and all machines must report their current status to the center. The central server is mainly used to receive data, analyze data and report actions. Centralized system. In order to avoid the impact of MES failure on the factory, dual-system local backup is often set up or a hybrid cloud architecture is further adopted to reduce and shorten the impact of MES failure on the factory, but this will increase business costs. The BMES system in the present invention is built based on the blockchain. The ledger in the blockchain is built for each node. All data is scattered in each node, and there is no central server to manage the ledger. , but all nodes are jointly maintained, making it a decentralized system. At the same time, the cost under the decentralized architecture will be much cheaper than that of centralization.

(二)系統安全性:在商用MES系統中,重要資料皆會與MES放於整個工廠內的同一台主機中,然而所有東西放於同台主機會容易造成風險過高。在BMES則是將所有資料放於區塊鏈中,而在區塊鏈中的帳本能透過本身的雜湊值來保護資料不易更改。 (2) System security: In a commercial MES system, important data will be placed on the same host as the MES in the entire factory. However, putting everything on the same host will easily lead to excessive risks. In BMES, all data is placed in the blockchain, and the ledger in the blockchain can protect the data from being easily changed through its own hash value.

(三)主動在製品追蹤:在商用MES中,在製品的追蹤主要透過機台主動回報MES主系統時,MES主系統會被動得到相關資料,並根據產品情況來給予行動。而在BMES中則是透過區塊鏈中的節點發送事件,主動去通知下個機台準備相關資料,並根據網路中的帳本內容行動。 (3) Active work-in-progress tracking: In commercial MES, the tracking of work-in-progress is mainly through the machine. When the machine actively reports to the MES main system, the MES main system will passively obtain relevant data and take action based on the product situation. In BMES, events are sent through nodes in the blockchain to proactively notify the next machine to prepare relevant data and act according to the contents of the ledger in the network.

(四)支援流程精進的可調適性(adaptability):傳統MES核心的控制流程是基於資料庫所設計,再根據現場生產管理情境進行MES核心與現場的系統整合,可視為一種top-down整合方式。本發明之BMES是以智能合約為核心,能將工廠操作管理(operation management)之流程轉換成邏輯核心與帳本,是一種bottom-up整合方式。由於智能合約具有彈性修改的能力,工廠流程調整可以更便捷。特別是針對中小型企業,Bottom-up整合方式能提供更彈性的系統。 (4) Adaptability to support process improvement: The traditional MES core control process is designed based on the database, and then the MES core and on-site systems are integrated according to the on-site production management situation. This can be regarded as a top-down integration method. . The BMES of the present invention is based on smart contracts and can convert the process of factory operation management into logical core and ledger, which is a bottom-up integration method. Because smart contracts have the ability to be flexibly modified, factory process adjustments can be made more convenient. Especially for small and medium-sized enterprises, the bottom-up integration method can provide a more flexible system.

(五)去中心化分布:在商用MES中,所有的機台在接收到 資料時會向MES詢問,並根據行動。在整個產線流程中,所有較為複雜的邏輯判斷都是交給MES系統。而在BMES中,較為複雜的邏輯都於區塊鏈的智能合約中,而各節點也可透過帳本的更改或事件的取得自行判斷行動,而非主要依靠單一節點。 (5) Decentralized distribution: In commercial MES, all machines receive The MES will be asked for information and will act accordingly. Throughout the entire production line process, all relatively complex logical judgments are handed over to the MES system. In BMES, the more complex logic is in the smart contract of the blockchain, and each node can also judge its own actions through changes in the ledger or the acquisition of events, rather than relying mainly on a single node.

(六)自我復原:在BMES中即便是一時的離線或失效,只要回復並重新加入區塊鏈,帳本同步完成後可令失效或離線的節點恢復正常工作能力。 (6) Self-recovery: In BMES, even if it is temporarily offline or failed, as long as it is restored and rejoined the blockchain, the failed or offline node can resume normal working capabilities after the ledger synchronization is completed.

(七)Blockchain as a Service(BaaS):當工站具備完善資訊模型及邊緣運算功能,BMES的佈署可以讓設備具有BaaS的能力,使其自動加入廠內的智能合約,快速建立群內溝通及自我服務的能力。 (7) Blockchain as a Service (BaaS): When the work station has a complete information model and edge computing function, the deployment of BMES can give the device the BaaS capability, allowing it to automatically join the smart contract in the factory and quickly establish communication within the group. and the ability to serve oneself.

本發明以上各實施例彼此之間可以任意組合或者替換,從而衍生更多之實施態樣,但皆不脫本發明所欲保護之範圍,茲進一步提供更多本發明實施例如次: The above embodiments of the present invention can be arbitrarily combined or replaced with each other, thereby deriving more embodiments, without departing from the scope of protection of the present invention. More embodiments of the present invention are further provided as follows:

實施例1:一種區塊鏈製造執行系統,其包含:區塊鏈網路層,其包含第一鏈上節點、第二鏈上節點、由該第一鏈上節點與該第二鏈上節點共同維護之共通分類帳本以及共同執行之智能合約;生管製造層,其包含生管站以及工站,該生管站包含第一主機而該工站包含第二主機以及生產製造設備;以及中介代理層,其包含連接該第一鏈上節點之生管端區塊鏈應用程式以及連接該第二鏈上節點之製造端區塊鏈應用程式,該生管端區塊鏈應用程式與該製造端區塊鏈應用程式分別配置於該第一主機與該第二主機上執行以將該生管製造層連結該區塊鏈網路層,其中該生管站或該工站發起事件而觸發該智能合約之執行與該共通分類帳本之更新,從 而由該區塊鏈網路層驅動該生管製造層執行製造作業,以驅動該區塊鏈製造執行系統之運行。 Embodiment 1: A blockchain manufacturing execution system, which includes: a blockchain network layer, which includes a first chain node, a second chain node, the first chain node and the second chain node. A common ledger that is jointly maintained and a smart contract that is jointly executed; a production management and manufacturing layer, which includes a production management station and a workstation, where the production management station includes a first host and the workstation includes a second host and production and manufacturing equipment; and The intermediary agent layer includes a production-side blockchain application connected to the node on the first chain and a production-side blockchain application connected to the node on the second chain. The production-side blockchain application is connected to the node on the second chain. The manufacturing-side blockchain application is configured to execute on the first host and the second host respectively to connect the production management and manufacturing layer to the blockchain network layer, wherein the production management station or the work station initiates an event to trigger The execution of the smart contract and the update of the common ledger, from The blockchain network layer drives the production management and manufacturing layer to execute manufacturing operations to drive the operation of the blockchain manufacturing execution system.

實施例2:如實施例1所述之區塊鏈製造執行系統,還包含以下其中之一:其中該第一鏈上節點與該第二鏈上節點係包含於該區塊鏈網路層所包含的複數許可節點,該等許可節點係包含於該區塊鏈網路層所包含的複數鏈上節點;其中該第一鏈上節點與該第二鏈上節點係選自一生管節點、一製造節點、一複合製造節點以及一複合生管製造節點其中之一;以及其中該生管節點用於協助該管理端掌握該製造作業之複數運作細節,該等運作細節包含至少管理數位資產、將採購訂單(PO)轉化為製造訂單(MO)、建立工作計畫(WP)、起始化該MO、執行該MO與該WP、根據該MO和該WP生成報工單(WO)以及取得在製品(WIP)生產進度。 Embodiment 2: The blockchain manufacturing execution system as described in Embodiment 1 further includes one of the following: wherein the first on-chain node and the second on-chain node are included in the blockchain network layer. Contains a plurality of permission nodes, which are included in a plurality of on-chain nodes included in the blockchain network layer; wherein the first on-chain node and the second on-chain node are selected from a management node, a One of a manufacturing node, a composite manufacturing node, and a composite production management node; and wherein the production management node is used to assist the management end in mastering multiple operational details of the manufacturing operation, which operational details include at least managing digital assets, Convert the purchase order (PO) to the manufacturing order (MO), establish the work plan (WP), initialize the MO, execute the MO and WP, generate a work order (WO) based on the MO and WP, and obtain the work order (WO). Product (WIP) production progress.

實施例3:如實施例2所述之區塊鏈製造執行系統,其中:該MO的內容包含該PO中產品的項目和數量;該WO用於控制生產並記錄每個產品實例的實際狀態並包含需求的產品、所需數量及對應的WP,並在製造過程中隨時與WIP狀態保持同步;該WP描述了從起始原材料到最終產品的所有轉變,包括其名稱、操作內容及操作的順序,每個操作內容都必須列出所需的工作站與操作參數、所需的資源和工藝參數,並集合用於保存生產產品的工作計劃資料;以及該WO集合用於管理WIP、記錄WIP狀態、循環開始和結束的時間戳、機器和操作參數。 Embodiment 3: The blockchain manufacturing execution system as described in Embodiment 2, wherein: the content of the MO includes the items and quantities of the products in the PO; the WO is used to control production and record the actual status of each product instance and Contains the required product, required quantity and corresponding WP, and is synchronized with the WIP status at any time during the manufacturing process; the WP describes all transformations from starting raw materials to final products, including its name, operation content and sequence of operations , each operation content must list the required workstations and operating parameters, required resources and process parameters, and collect the work plan data used to save the production products; and the WO collection is used to manage WIP, record WIP status, Loop start and end timestamps, machine and operating parameters.

實施例4:如實施例1所述之區塊鏈製造執行系統,還包含以下其中之一:其中該生管站還包含管理端,該管理端係選自企業資源規劃平台、高級規劃系統、有生生管經理人與有生管理人員其中之一;其中該 生管端區塊鏈應用程式還包含使用者介面以提供該有生生管經理人或該有生管理人員操作;其中該製造端區塊鏈應用程式還包含生產製造設備客戶端模組以及區塊鏈客戶端模組;其中該生管端區塊鏈應用程式與該製造端區塊鏈應用程式係透過去中心化應用程式之形式於該第一主機與該第二主機上執行;其中該生管端區塊鏈應用程式係作為該管理端連接該第一鏈上節點之生管端區塊鏈應用程式介面;其中該製造端區塊鏈應用程式係作為該工站連接該第二鏈上節點之製造端區塊鏈應用程式介面;其中該第一主機與該第二主機為同一主機或不同主機;其中該工站係為自動裝配站、裝配站、檢查站或者自動倉儲站;以及其中該生產製造設備係選自機械臂、CNC加工機、搬運機器人以及紅外線自動設備其中之一。 Embodiment 4: The blockchain manufacturing execution system as described in Embodiment 1 also includes one of the following: wherein the production management station also includes a management end, and the management end is selected from an enterprise resource planning platform, an advanced planning system, One of the life management manager and the life management personnel; among which the The production management side blockchain application also includes a user interface to provide the production management manager or the production management personnel with operations; wherein the production side blockchain application also includes a production manufacturing equipment client module and a block Chain client module; wherein the production management side blockchain application and the production side blockchain application are executed on the first host and the second host through a decentralized application; wherein the production side blockchain application is executed on the first host and the second host through a decentralized application; The pipe-end blockchain application is used as the management end to connect to the production pipe-end blockchain application interface of the node on the first chain; wherein the manufacturing end blockchain application is used as the work station to connect to the second chain. The manufacturing end blockchain application programming interface of the node; wherein the first host and the second host are the same host or different hosts; wherein the work station is an automatic assembly station, assembly station, inspection station or automatic storage station; and wherein The production and manufacturing equipment is selected from one of robotic arms, CNC processing machines, handling robots and infrared automatic equipment.

實施例5:如實施例1所述之區塊鏈製造執行系統,其中在該生管站還包含以下其中之一:該管理端透過該製造端區塊鏈應用程式之轉換,而向該區塊鏈網路層所包含之該第一鏈上節點導入關於該製造作業之生管製造計畫;該管理端透過該製造端區塊鏈應用程式之轉換,而向該區塊鏈網路層所包含之該第一鏈上節點導入關於該製造作業之該生管製造計畫;該管理端透過該製造端區塊鏈應用程式,而接收來自該第一鏈上節點根據該智能合約與該共通分類帳本關於該製造作業之執行進度回報;以及 Embodiment 5: The blockchain manufacturing execution system as described in Embodiment 1, wherein the production management station further includes one of the following: the management end converts the manufacturing end blockchain application to the area. The first on-chain node included in the blockchain network layer imports the production management plan for the manufacturing operation; the management end transmits the production management plan to the blockchain network layer through the conversion of the manufacturing end blockchain application. The included node on the first chain imports the production management plan for the manufacturing operation; the management end receives the information from the node on the first chain through the manufacturing end blockchain application according to the smart contract and the A common ledger report on the execution progress of the manufacturing operation; and

實施例6:如實施例1所述之區塊鏈製造執行系統,其中在該工站還包含以下其中之一:該生產製造設備接收來自該第二鏈上節點根據該智能合約與該共通分類帳本而產生並透過該製造端區塊鏈應用程式而發送之控制指令而作動以執行該製造作業;以及該生產製造設備透過該製造端區塊鏈應用程式以及該第二鏈上節點而向該智能合約與該共通分類帳本 更新狀態資訊。 Embodiment 6: The blockchain manufacturing execution system as described in Embodiment 1, wherein the workstation further includes one of the following: the production and manufacturing equipment receives information from the second on-chain node according to the smart contract and the common classification The control instructions generated by the ledger and sent through the manufacturing-side blockchain application are executed to execute the manufacturing operation; and the production and manufacturing equipment is directed to the manufacturing-side blockchain application and the second on-chain node. The smart contract and the common ledger Update status information.

實施例7:如實施例1所述之區塊鏈製造執行系統,其中該共通分類帳本還包含至少以下四種分類帳本:設備帳本,係用於紀錄有關於該工站之相關資料,包含名稱、地址、可執行之操作及其參數規範;工作計劃帳本,係用於紀錄有關於工作計劃之相關資料,包含其名稱、操作及操作的順序;訂單帳本,係用於紀錄有關製造訂單之相關資料,包含需求的產品、所需數量及其工作計劃;以及在製品帳本,係用於紀錄有關在製品之相關資料,包含在製品狀態、循環開始和結束的時間戳、機器和操作參數。 Embodiment 7: The blockchain manufacturing execution system as described in Embodiment 1, wherein the common ledger also includes at least the following four ledgers: Equipment ledger, which is used to record relevant information about the workstation. , including the name, address, executable operations and their parameter specifications; the work plan account is used to record relevant information about the work plan, including its name, operation and sequence of operations; the order account is used to record Relevant information about manufacturing orders, including required products, required quantities, and work plans; and a work-in-progress ledger, which is used to record relevant information about work-in-progress, including work-in-progress status, cycle start and end timestamps, Machine and operating parameters.

實施例8:一種區塊鏈製造執行方法,其包含:組建區塊鏈網路層,其包含第一鏈上節點、第二鏈上節點、由該第一鏈上節點與該第二鏈上節點共同維護之共通分類帳本以及共同執行之智能合約;配置生管製造層,其包含生管站以及工站,該生管站包含第一主機而該工站包含第二主機以及生產製造設備;建立中介代理層,其介於該區塊鏈網路層與該生管製造層之間,並包含連接該第一鏈上節點之生管端區塊鏈應用程式以及連接該第二鏈上節點之製造端區塊鏈應用程式;分別於該第一主機與該第二主機上執行該生管端區塊鏈應用程式與該製造端區塊鏈應用程式以將該生管製造層連結至該區塊鏈網路層;以及在該生管站或該工站發起事件而觸發該智能合約之執行與該共通分類帳本之更新,從而由該區塊鏈網路層驅動該生管製造層執行製造作業。 Embodiment 8: A blockchain manufacturing execution method, which includes: establishing a blockchain network layer, which includes a first chain node, a second chain node, the first chain node and the second chain node. A common ledger jointly maintained by the nodes and a jointly executed smart contract; a production management and manufacturing layer is configured, which includes a production management station and a work station. The production management station includes a first host and the work station includes a second host and production and manufacturing equipment. ; Establish an intermediary agent layer, which is between the blockchain network layer and the production management layer, and includes the production management blockchain application connecting the nodes on the first chain and connecting the second chain The production-side blockchain application of the node; execute the production-side blockchain application and the production-side blockchain application on the first host and the second host respectively to connect the production management layer to The blockchain network layer; and initiating an event at the production management station or the work station to trigger the execution of the smart contract and the update of the common ledger, thereby driving the production management manufacturing by the blockchain network layer layer performs manufacturing operations.

實施例9:如實施例8所述之區塊鏈製造執行方法,還包含以下其中之一:在該生管站:該管理端透過該製造端區塊鏈應用程式之轉換, 而向該區塊鏈網路層所包含之該第一鏈上節點導入關於該製造作業之生管製造計畫;該管理端透過該製造端區塊鏈應用程式之轉換,而向該區塊鏈網路層所包含之該第一鏈上節點導入關於該製造作業之該生管製造計畫;以及該管理端透過該製造端區塊鏈應用程式,而接收來自該第一鏈上節點根據該智能合約與該共通分類帳本關於該製造作業之執行進度回報。 Embodiment 9: The blockchain manufacturing execution method described in Embodiment 8 also includes one of the following: at the production management station: the management end converts the manufacturing end blockchain application, The production management plan for the manufacturing operation is imported to the first on-chain node included in the blockchain network layer; the management end transfers the production management plan to the block chain through the conversion of the manufacturing end blockchain application. The first on-chain node included in the chain network layer imports the production management manufacturing plan for the manufacturing operation; and the management end receives data from the first on-chain node through the manufacturing end blockchain application. The smart contract and the common ledger report on the execution progress of the manufacturing operation.

實施例10:如實施例8所述之區塊鏈製造執行方法,還包含以下其中之一:在該工站:該生產製造設備接收來自該第二鏈上節點根據該智能合約與該共通分類帳本而產生並透過該製造端區塊鏈應用程式而發送之控制指令而作動以執行該製造作業;以及該生產製造設備透過該製造端區塊鏈應用程式以及該第二鏈上節點而向該智能合約與該共通分類帳本更新狀態資訊。 Embodiment 10: The blockchain manufacturing execution method as described in Embodiment 8 also includes one of the following: at the work station: the production and manufacturing equipment receives information from the node on the second chain according to the smart contract and the common classification The control instructions generated by the ledger and sent through the manufacturing-side blockchain application are executed to execute the manufacturing operation; and the production and manufacturing equipment is directed to the manufacturing-side blockchain application and the second on-chain node. The smart contract and the common ledger update status information.

本發明各實施例彼此之間可以任意組合或者替換,從而衍生更多之實施態樣,但皆不脫本發明所欲保護之範圍,本發明保護範圍之界定,悉以本發明申請專利範圍所記載者為準。 The various embodiments of the present invention can be arbitrarily combined or replaced with each other to derive more embodiments, but all do not deviate from the scope of protection of the present invention. The scope of protection of the present invention is defined by the patent scope of the present invention. The recorder shall prevail.

10:區塊鏈製造執行系統 10: Blockchain manufacturing execution system

100:區塊鏈網路層 100: Blockchain network layer

111-118:鏈上節點 111-118: Nodes on the chain

121:生管節點 121: Production and management node

122-123:製造節點 122-123: Manufacturing node

130:智能合約 130:Smart Contract

140:共通分類帳本 140: Common ledger

200:中介代理層 200: Intermediary agent layer

210:生管端區塊鏈應用程式 210: Production and management blockchain applications

212:使用者介面 212:User interface

215:生管端區塊鏈應用程式介面 215:Production and management end blockchain API

220-221:製造端區塊鏈應用程式 220-221: Manufacturing-side blockchain applications

222:生產製造設備客戶端模組 222: Manufacturing equipment client module

223:區塊鏈客戶端模組 223:Blockchain client module

225:製造端區塊鏈應用程式介面 225: Manufacturing Blockchain API

300:生管製造層 300: Pipe manufacturing layer

310:生管站主機 310: Production management station host

311:管理端 311: Management end

320-322:工站主機 320-322:Work station host

330-332:生產製造設備 330-332: Manufacturing equipment

MS:生管站 MS: Health Management Station

WS1:工站 WS1: Work station

WS2:工站 WS2: Work station

WS3:工站 WS3: Workstation

Claims (10)

一種區塊鏈製造執行系統,其包含:一區塊鏈網路層,其包含一第一鏈上節點、一第二鏈上節點、由該第一鏈上節點與該第二鏈上節點共同維護之一共通分類帳本以及共同執行之一智能合約,該智能合約經配置以包含一生管製造數位化協議和規則,該生管製造數位化協議和規則包含一在製品追蹤協議,該共通分類帳本經配置以包含一報工單帳本而該報工單帳本包含一報工單;一生管製造層,其包含一生管站以及一工站,該生管站包含一第一主機而該工站包含一第二主機以及一生產製造設備,該生產製造設備用於將一在製品製造為一產品;以及一中介代理層,其包含連接該第一鏈上節點之一生管端區塊鏈應用程式以及連接該第二鏈上節點之一製造端區塊鏈應用程式,該生管端區塊鏈應用程式與該製造端區塊鏈應用程式分別配置於該第一主機與該第二主機上執行以將該生管製造層連結該區塊鏈網路層,其中該生管站或該工站發起一事件而觸發該智能合約之執行與該共通分類帳本之更新,從而由該區塊鏈網路層驅動該生管製造層執行一製造作業,以驅動該區塊鏈製造執行系統之運行,其中該事件將同步觸發該智能合約與該生管製造數位化協議和規則之執行,該智能合約將基於該生管製造數位化協議和規則並以該報工單作為數位指引而自動控制與執行該製造作業,以自主生產該產品,並使該區塊鏈製造執行系統具備自主運行能力,其中在該製造作業執行過程中,該智能合約經配置執行該在製品追蹤協議,以主動確定該報工單之內容與該在製品之狀態之間保持即時同 步。 A blockchain manufacturing execution system, which includes: a blockchain network layer, which includes a first chain node and a second chain node, which are jointly operated by the first chain node and the second chain node. Maintaining a common ledger and jointly executing a smart contract configured to include manufacturing digitalization protocols and rules, the manufacturing digitalization protocols and rules including a work-in-progress tracking protocol, the common classification The ledger is configured to include a work order ledger, and the work order ledger includes a work order; a production management and manufacturing layer, which includes a production management station and a work station, the production management station includes a first host and the work order The station includes a second host and a production and manufacturing equipment, the production and manufacturing equipment is used to manufacture a work-in-progress into a product; and an intermediary agent layer, which includes a production-end blockchain application connected to the node on the first chain program and a manufacturing-side blockchain application connected to the node on the second chain. The production-side blockchain application and the manufacturing-side blockchain application are respectively configured on the first host and the second host. Execution is to connect the production management manufacturing layer to the blockchain network layer, wherein the production management station or the work station initiates an event to trigger the execution of the smart contract and the update of the common ledger, so that the block The chain network layer drives the production management and manufacturing layer to execute a manufacturing operation to drive the operation of the blockchain manufacturing execution system. The event will simultaneously trigger the execution of the smart contract and the production management and manufacturing digital protocols and rules. The smart contract will automatically control and execute the manufacturing operation based on the digital production management and manufacturing protocols and rules and use the work order as a digital guide to independently produce the product and enable the blockchain manufacturing execution system to have autonomous operation capabilities , wherein during the execution of the manufacturing operation, the smart contract is configured to execute the work-in-progress tracking protocol to proactively determine the real-time synchronization between the content of the work order and the status of the work-in-progress. step. 如請求項1所述之區塊鏈製造執行系統,還包含以下其中之一:其中該第一鏈上節點與該第二鏈上節點係包含於該區塊鏈網路層所包含的複數許可節點,該等許可節點係包含於該區塊鏈網路層所包含的複數鏈上節點;其中該第一鏈上節點與該第二鏈上節點係選自一生管節點、一製造節點、一複合製造節點以及一複合生管製造節點其中之一;以及其中該生管節點用於協助一管理端掌握該製造作業之複數運作細節,該等運作細節包含至少管理數位資產、將一採購訂單(PO)轉化為一製造訂單(MO)、建立一工作計畫(WP)、起始化該MO、執行該MO與該WP、根據該MO和該WP生成一報工單(WO)以及取得一在製品(WIP)生產進度。 The blockchain manufacturing execution system as described in claim 1 further includes one of the following: wherein the first node on the chain and the second node on the chain are included in a plurality of permissions included in the blockchain network layer. Nodes, these permission nodes are included in a plurality of on-chain nodes included in the blockchain network layer; wherein the first on-chain node and the second on-chain node are selected from a production management node, a manufacturing node, a One of a composite manufacturing node and a composite production management node; and wherein the production management node is used to assist a management end in mastering multiple operational details of the manufacturing operation, which operational details include at least managing digital assets, converting a purchase order ( PO) is converted into a manufacturing order (MO), creates a work plan (WP), initializes the MO, executes the MO and the WP, generates a work order (WO) based on the MO and the WP, and obtains a work order (WO). Product (WIP) production progress. 如請求項2所述之區塊鏈製造執行系統,其中:該MO的內容包含該PO中產品的項目和數量;該WO用於控制生產並記錄每個產品實例的實際狀態並包含需求的產品、所需數量及對應的該WP,並在製造過程中隨時與該WIP的狀態保持同步;該WP描述了從起始原材料到最終產品的所有轉變,包括其名稱、操作內容及操作的順序,每個操作內容都必須列出所需的工作站與操作參數、所需的資源和工藝參數,並集合用於保存生產產品的工作計劃資料;以及該WO集合用於管理該WIP、記錄該WIP之狀態、循環開始和結束 的時間戳、機器和操作參數。 The blockchain manufacturing execution system as described in request item 2, wherein: the content of the MO contains the items and quantities of the products in the PO; the WO is used to control production and record the actual status of each product instance and contains the required products , the required quantity and the corresponding WP, and are synchronized with the status of the WIP at any time during the manufacturing process; the WP describes all transformations from the starting raw materials to the final product, including its name, operation content and sequence of operations, Each operation content must list the required workstations and operating parameters, required resources and process parameters, and collect the work plan data used to save the production products; and the WO collection is used to manage the WIP and record the WIP. Status, loop start and end timestamps, machine and operating parameters. 如請求項1所述之區塊鏈製造執行系統,還包含以下其中之一:其中該生管站還包含一管理端,該管理端係選自一企業資源規劃平台、一高級規劃系統、一有生生管經理人與一有生管理人員其中之一;其中該生管端區塊鏈應用程式還包含一使用者介面以提供該有生生管經理人或該有生管理人員操作;其中該製造端區塊鏈應用程式還包含一生產製造設備客戶端模組以及一區塊鏈客戶端模組;其中該生管端區塊鏈應用程式與該製造端區塊鏈應用程式係透過一去中心化應用程式之形式於該第一主機與該第二主機上執行;其中該生管端區塊鏈應用程式係作為該管理端連接該第一鏈上節點之生管端區塊鏈應用程式介面;其中該製造端區塊鏈應用程式係作為該工站連接該第二鏈上節點之製造端區塊鏈應用程式介面;其中該第一主機與該第二主機為同一主機或不同主機;其中該工站係為一自動裝配站、一裝配站、一檢查站或者一自動倉儲站;以及其中該生產製造設備係選自一機械臂、一CNC加工機、一搬運機器人以及一紅外線自動設備其中之一。 The blockchain manufacturing execution system as described in claim 1 also includes one of the following: wherein the production management station also includes a management end, and the management end is selected from an enterprise resource planning platform, an advanced planning system, and an One of a life management manager and a life management personnel; wherein the production management blockchain application also includes a user interface to provide operation by the life management manager or the life management personnel; wherein the manufacturing The terminal blockchain application also includes a production and manufacturing equipment client module and a blockchain client module; wherein the production management terminal blockchain application and the manufacturing terminal blockchain application are connected through a decentralized The application is executed on the first host and the second host; wherein the pipeline-side blockchain application serves as a pipeline-side blockchain application interface for the management terminal to connect to the node on the first chain. ; wherein the manufacturing-side blockchain application is a manufacturing-side blockchain application program interface that connects the work station to the second node on the chain; wherein the first host and the second host are the same host or different hosts; wherein The work station is an automatic assembly station, an assembly station, an inspection station or an automatic storage station; and the production and manufacturing equipment is selected from a robotic arm, a CNC processing machine, a handling robot and an infrared automatic equipment. one. 如請求項1所述之區塊鏈製造執行系統,其中在該生管站還包含以下其中之一:該管理端透過該製造端區塊鏈應用程式之轉換,而向該區塊鏈網路 層所包含之該第一鏈上節點導入關於該製造作業之一生管製造計畫;以及該管理端透過該製造端區塊鏈應用程式,而接收來自該第一鏈上節點根據該智能合約與該共通分類帳本關於該製造作業之一執行進度回報。 The blockchain manufacturing execution system as described in claim 1, wherein the production management station further includes one of the following: the management terminal converts the manufacturing terminal blockchain application to the blockchain network The first on-chain node included in the layer imports the production management manufacturing plan for the manufacturing operation; and the management end receives data from the first on-chain node according to the smart contract through the manufacturing-end blockchain application. The common ledger reports on execution progress of one of the manufacturing operations. 如請求項1所述之區塊鏈製造執行系統,其中在該工站還包含以下其中之一:該生產製造設備接收來自該第二鏈上節點根據該智能合約與該共通分類帳本而產生並透過該製造端區塊鏈應用程式而發送之控制指令而作動以執行該製造作業;以及該生產製造設備透過該製造端區塊鏈應用程式以及該第二鏈上節點而向該智能合約與該共通分類帳本更新一狀態資訊。 The blockchain manufacturing execution system as described in claim 1, wherein the workstation further includes one of the following: the production and manufacturing equipment receives data generated from the node on the second chain according to the smart contract and the common ledger. and operates through the control instructions sent by the manufacturing-side blockchain application to execute the manufacturing operation; and the production and manufacturing equipment sends signals to the smart contract and the node through the manufacturing-side blockchain application and the second chain The common ledger is updated with status information. 如請求項1所述之區塊鏈製造執行系統,其中該共通分類帳本還包含至少以下四種分類帳本:一設備帳本,係用於紀錄有關於該工站之相關資料,包含名稱、地址、可執行之操作及其參數規範;一工作計劃帳本,係用於紀錄有關於一工作計劃之相關資料,包含其名稱、操作及操作的順序;一訂單帳本,係用於紀錄有關一製造訂單之相關資料,包含需求的產品、所需數量及其工作計劃;以及一在製品帳本,係用於紀錄有關一在製品之相關資料,包含在製品狀態、循環開始和結束的時間戳、機器和操作參數。 The blockchain manufacturing execution system as described in claim 1, wherein the common ledger also includes at least the following four ledgers: an equipment ledger, which is used to record relevant information about the work station, including the name , address, executable operations and their parameter specifications; a work plan account, which is used to record relevant information about a work plan, including its name, operation and sequence of operations; an order account, which is used to record Relevant information about a manufacturing order, including required products, required quantities, and work plans; and a work-in-progress ledger, used to record relevant information about a work-in-progress, including work-in-progress status, cycle start and end Timestamp, machine and operating parameters. 一種區塊鏈製造執行方法,其包含:組建一區塊鏈網路層,其包含一第一鏈上節點、一第二鏈上節點、由該第一鏈上節點與該第二鏈上節點共同維護之一共通分類帳本以及共同執行之一智能合約,該智能合約經配置以包含一生管製造數位化協議和規則,該生管製造數位化協議和規則包含一在製品追蹤協議,該共通分類帳本經配置以包含一報工單帳本而該報工單帳本包含一報工單;配置一生管製造層,其包含一生管站以及一工站,該生管站包含一第一主機而該工站包含一第二主機以及一生產製造設備,該生產製造設備用於將一在製品製造為一產品;建立一中介代理層,其介於該區塊鏈網路層與該生管製造層之間,並包含連接該第一鏈上節點之一生管端區塊鏈應用程式以及連接該第二鏈上節點之一製造端區塊鏈應用程式;分別於該第一主機與該第二主機上執行該生管端區塊鏈應用程式與該製造端區塊鏈應用程式以將該生管製造層連結至該區塊鏈網路層;以及在該生管站或該工站發起一事件而觸發該智能合約之執行與該共通分類帳本之更新,從而由該區塊鏈網路層驅動該生管製造層執行一製造作業,其中該事件將同步觸發該智能合約與該生管製造數位化協議和規則之執行,該智能合約將基於該生管製造數位化協議和規則並以該報工單作為數位指引而自動控制與執行該製造作業,以自主生產該產品,並使該區塊鏈製造執行系統具備自主運行能力,其中在該製造作業執行過程中,該智能合約經配置執行該在製品追 蹤協議,以主動確定該報工單之內容與該在製品之狀態之間保持即時同步。 A blockchain manufacturing and execution method, which includes: establishing a blockchain network layer, which includes a first chain node, a second chain node, the first chain node and the second chain node. A common ledger is jointly maintained and a smart contract is jointly executed, the smart contract being configured to include a manufacturing digitization protocol and rules, the manufacturing digitization protocol and rules including a work-in-progress tracking protocol, the common The ledger is configured to include a work order ledger and the work order ledger includes a work order; a production management manufacturing layer is configured, which includes a production management station and a work station, the production management station includes a first host and The workstation includes a second host and a production and manufacturing equipment. The production and manufacturing equipment is used to manufacture a work-in-progress into a product; an intermediary agent layer is established between the blockchain network layer and the production management and manufacturing between the layers, and includes a production-side blockchain application connected to the node on the first chain and a manufacturing-side blockchain application connected to the node on the second chain; respectively on the first host and the second Execute the production management side blockchain application and the production side blockchain application on the host to connect the production management manufacturing layer to the blockchain network layer; and initiate a process at the production management station or the work station. The event triggers the execution of the smart contract and the update of the common ledger, so that the blockchain network layer drives the production management layer to execute a manufacturing operation, where the event will simultaneously trigger the smart contract and the production management layer. Execution of manufacturing digitalization protocols and rules. The smart contract will automatically control and execute the manufacturing operation based on the manufacturing digitalization protocols and rules and use the work order as a digital guide to independently produce the product and enable the The blockchain manufacturing execution system has the ability to operate autonomously. During the execution of the manufacturing operation, the smart contract is configured to execute the work-in-process tracking. Tracking protocol to proactively ensure real-time synchronization between the content of the work order and the status of the work in progress. 如請求項8所述之區塊鏈製造執行方法,還包含以下其中之一:在該生管站:該管理端透過該製造端區塊鏈應用程式之轉換,而向該區塊鏈網路層所包含之該第一鏈上節點導入關於該製造作業之一生管製造計畫;該管理端透過該製造端區塊鏈應用程式之轉換,而向該區塊鏈網路層所包含之該第一鏈上節點導入關於該製造作業之該生管製造計畫;以及該管理端透過該製造端區塊鏈應用程式,而接收來自該第一鏈上節點根據該智能合約與該共通分類帳本關於該製造作業之一執行進度回報。 The blockchain manufacturing execution method described in claim 8 also includes one of the following: at the production management station: the management end converts the production end blockchain application to the blockchain network The node on the first chain included in the layer imports the production management manufacturing plan for the manufacturing operation; the management end transmits the production management plan to the node included in the blockchain network layer through the conversion of the manufacturing end blockchain application. The first on-chain node imports the production management manufacturing plan for the manufacturing operation; and the management end receives data from the first on-chain node according to the smart contract and the common ledger through the manufacturing end blockchain application. This report is about the execution progress of one of the manufacturing operations. 如請求項8所述之區塊鏈製造執行方法,還包含以下其中之一:在該工站:該生產製造設備接收來自該第二鏈上節點根據該智能合約與該共通分類帳本而產生並透過該製造端區塊鏈應用程式而發送之控制指令而作動以執行該製造作業;以及該生產製造設備透過該製造端區塊鏈應用程式以及該第二鏈上節點而向該智能合約與該共通分類帳本更新一狀態資訊。 The blockchain manufacturing execution method described in request item 8 also includes one of the following: at the work station: the production and manufacturing equipment receives data generated from the node on the second chain according to the smart contract and the common ledger. and operates through the control instructions sent by the manufacturing-side blockchain application to execute the manufacturing operation; and the production and manufacturing equipment sends signals to the smart contract and the node through the manufacturing-side blockchain application and the second chain The common ledger is updated with status information.
TW111133957A 2022-09-07 2022-09-07 Blockchain-based manufacturing execution system and method TWI817707B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111133957A TWI817707B (en) 2022-09-07 2022-09-07 Blockchain-based manufacturing execution system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111133957A TWI817707B (en) 2022-09-07 2022-09-07 Blockchain-based manufacturing execution system and method

Publications (2)

Publication Number Publication Date
TWI817707B true TWI817707B (en) 2023-10-01
TW202412487A TW202412487A (en) 2024-03-16

Family

ID=89857950

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111133957A TWI817707B (en) 2022-09-07 2022-09-07 Blockchain-based manufacturing execution system and method

Country Status (1)

Country Link
TW (1) TWI817707B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113159507A (en) * 2021-03-16 2021-07-23 广东工业大学 Intelligent contract system for industrial scheduling and adaptive configuration method thereof
CN113469716A (en) * 2021-07-20 2021-10-01 山东省计算中心(国家超级计算济南中心) Product tracing method and system based on block chain and identification analysis
CN114398450A (en) * 2021-12-30 2022-04-26 湖南华菱涟源钢铁有限公司 Processing method and device for production quality data and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113159507A (en) * 2021-03-16 2021-07-23 广东工业大学 Intelligent contract system for industrial scheduling and adaptive configuration method thereof
CN113469716A (en) * 2021-07-20 2021-10-01 山东省计算中心(国家超级计算济南中心) Product tracing method and system based on block chain and identification analysis
CN114398450A (en) * 2021-12-30 2022-04-26 湖南华菱涟源钢铁有限公司 Processing method and device for production quality data and electronic equipment

Similar Documents

Publication Publication Date Title
CN1937559B (en) Proxy server for integration of industrial automation data over multiple networks
US8515793B2 (en) Virtual production control system and method and computer program product thereof
CN103532975B (en) A kind of can dynamic smoothing extension data collecting system and method
CN107077128B (en) Control the real world objects in industrial plants
CN102640068A (en) Method for configuration SOA-based automation devices and for developing an orchestration machine, production method and production system in service-oriented architecture having embedded service orchestration engine
CN101477655A (en) Layered MES software system architecture
CN103221891A (en) Intelligent interface for a distributed control system
CN110046166B (en) Timing task scheduling method and device based on block chain
CN109472326A (en) Distribution net equipment and asset management mobile application system based on RFID
CN107403227A (en) A kind of equipment O&M Synergistic method, apparatus and system across enterprise
Represa et al. Autonomous production workstation operation, reconfiguration and synchronization
TWI817707B (en) Blockchain-based manufacturing execution system and method
Sekkat et al. Developing integrated performance measurement system using component based approach
CN109743249A (en) Forming method, integrated gateway and the integrated system of the integrated gateway of passenger information system
CN117172641A (en) Production logistics management platform based on block chain and digital twin and implementation method
Bonci et al. An OSGi-based production process monitoring system for SMEs
TW202412487A (en) Blockchain-based manufacturing execution system and method
Kaczmarczyk et al. Revisiting the role of manufacturing execution systems in Industry 4.0
Nwasuka et al. Industry 4.0: An Overview
US11706297B2 (en) Integration of a machine into an existing distributed ledger network
KR101304312B1 (en) Manufacturing execution system, and recording medium for the same
WO2023015545A1 (en) Interaction method for heavy-load ganrty robot and mes system
Lv et al. Integrated asset management model based on IEC 61499 and Administration Shell
Lv et al. Edge asset management based on administration shell in industrial cyber-physical systems
CN112529618A (en) Intelligent manufacturing system and method for carbon fiber and composite material