Abstract
Keywords
Introduction
With the increased requirements of personalized products, product quality, and service quality, the manufacturing systems need to meet the task of multi-variety, small batch, and personalized features. At the same time, with the continuous development of science and technology, advanced manufacturing technology and ideas are introduced and applied to manufacturing industry such as cloud computing, Internet of Things, big data, and cyber-physical systems (CPS).1–4 Therefore, the traditional manufacturing model is facing great challenges. In the context of the new market demand characteristics and advanced technology development, the German “Industrial 4.0,” as the representative of the reform, opened the intelligent manufacturing-led fourth industrial revolution prelude.
With the promotion and application of CPS, a CPS-enabled decentralized, enhanced manufacturing model is formed, which is cyber-physical production system (CPPS). According to Laszlo 11 and Uhlemann et al., 12 CPPS is the combination of CPS and advanced manufacturing technology in depth, which uses CPS-related technologies and relies on different embedded devices. It forms a concurrent network through continuous calculation and communication, which can increase industrial production system flexibility and adaptability in complex and dynamic production environment. CPPS will establish a highly flexible personalized, digital, and intelligent production mode, matching tasks and devices intelligently.
Given the characteristics of CPPS, it contains a large number of different tasks, many of which are personalized and non-standard tasks. The intelligent devices also have different processing and manufacturing capabilities. However, the manufacturing system needs to analyze the tasks to match the devices and execute them autonomously and automatically. If there is no standard definition and matching methods of tasks and devices (resources), the production system will not work. Therefore, definition and matching methods in the system should be established, so as to provide the basis of System operation, which is an important research content in the CPPS field. Tao et al. 13 studied the method of matching supply and demand in cloud manufacturing environment and designed a simulator. Y Li et al. 14 divided product design into three elements—tasks, personnel and resources, analyzed their attributes, and designed a matching algorithm. Wang 15 designed an attribute classification and formatting method of task in joint operations. D Strang and R Anderl 9 chose Unified Modeling Language (UML) to model the communications and material flows in CPPS. In the model, knowledge about the individual components can be stored and used to make decisions in the assembly process. The above-mentioned related methods have some guiding significance to this research, but they are dedicated methods for its own application area, lacking of universal. Therefore, the expression method and corresponding matching method cannot be directly applied to the research.
In this article, the definition of tasks and devices (resources) in CPPS and the matching mechanism between them are studied, to form a universally applicable and complete theory. The main contents are summarized as follows: (1) the establishment of the process knowledge base; (2) the definition of the task: through the definition, the users can obtain the parameters required by the process, the task of the process line. The users can design tasks to automatically capture the process of the task line; (3) the definition of devices: through which the user can get the achievable process type and parameter standard for each device. (4) The establishment of matching mechanism: based on the definition of tasks and devices, extract and match the relevant parameters of tasks and devices, so as to form a mapping between tasks and devices. The tasks-resources mapping is shown in Figure 1. (5) A management information system containing all the studies to show the feasibility of the method.

Tasks-resources mapping diagram.
Method of building process knowledge base
Standard definition in the process knowledge base is useful and necessary to describe a task or resource in a system. It allows the system to accurately identify the contents of the tasks and resources. The process knowledge base contains the following sections:
Device definition and machining parameter acquisition method
Device definition
The definition of a device includes the definition of the device function, the definition of the capability, and the definition of the state. There are three attributes that need to be defined specifically, descriptive, technical, and performance attributes.
Based on the above attribute definition, assuming the existence of device
where
Processing quality is the evaluation of equipment service quality when finishing the tasks, including processing accuracy, product qualification rate, and so on. For the
where
Due to the variation of coefficient, the processing time of different processes are not the same. It is difficult to fully enumerate them in the definition of the device. Therefore, for each device, the common standard time library is established in this study. The format is
When the device receives the common standard process, it can directly get the time in the library for subsequent performance evaluation. When the relevant parameters in the received process are not incompatible with the library, backpropagation (BP) neural network is used for time prediction based on the common standard time library. The BP neural network prediction method will be described in detail in the following section. Equation (4) gives a unified way to obtain processing time
When the process is a standard process, the function
Processing time quota method based on BP neural network
The neural network connects a large number of neurons to each other and forms a network to abstract, simplify, and simulate the human brain, thereby attempting to reflect the basic characteristics of the human brain. As a relatively mature method, it has been applied in many disciplines, including processing time forecast and quota, with its unique distributed storage, parallel processing, adaptive self-organizing self-learning, and highly fault-tolerant. 17 Therefore, BP neural network is chosen to quota processing time, and specific operation will not go into details. The effectiveness of the method is verified by welding process with a workshop welder.
According to the processing characteristics, select the four factors related to processing time: steel plate thickness, electrode diameter, weld thickness, and weld length. Part of the data is shown in Table 1. MATLAB is used to train and test neural network.
Welding data.
The parameters for the BP neural network are as follows:
The function “premnmx” is used to normalize the data.
The bipolar S-shaped function is selected as the transfer function of the first layer, and linear function is selected as the transfer function of the second layer.
The number of nodes in the hidden layer is defined using Kolmogorov theorem and empirical formula, which is 5.
The error target is set to be 10−6.
The training process is shown in Figure 2. It can be seen that the 570th iteration reached the training target.

Sample training process chart.
Using another 14 sets of data as testing data, the results are shown in Table 2. The average error is less than 10%, indicating the forecast is good. Before the actual operation of the system, all the BP neural network are well trained and stored in the system to ensure the timeliness of processing.
Predicted value and actual value comparison for processing time.
Definition and analysis of tasks
Task definition method
Task definition could enable the system to automatically identify tasks and match the appropriate device according to the routing and process requirements. The task definition should include routing, task requirements, machining status, and results. Thus, three attributes are needed, namely, descriptive attributes, technical attributes, and economic attributes:
Based on the above attribute definitions, for a task
where
Generation method of task processing route based on colored Petri net
It is necessary to design the processing route of the task and the method to generate the logical model, in order to let task be identified and processed by the device. Petri net was first proposed by Dr Carl Adam Petri of Germany 18 and later attracted the attention of academia and industry. After half a century of development, Petri net theory was gradually mature and widely used in the construction of model and simulation of the manufacturing process, such as path optimization, production scheduling, pipeline balance, and other optimization issues.19,20 Petri nets are an important tool for describing and analyzing complex processes from a process perspective, and they can be used for dynamic simulation and system behavior analysis. The visualized Petri net model can be transformed into a storable language stored in a radio frequency identification (RFID) tag, sensed and parsed by the device terminal, and then makes intelligent decisions about the manufacturing process. Colored Petri net (CPN) is used as a logical model to characterize the processing route of the task in this article. The schematic diagram of the processing route CPN is shown in Figure 3.

Schematic diagram of the processing route CPN.
In order to express the logical relationship between the order of processing and each process, five modes of transitions are defined, the definition of each transition is shown in Figure 4. In addition, the function

Interfaces of knowledge database management.
When receiving a task, the CPPS needs to analyze the task autonomously and generate the machining route. Therefore, an algorithm is needed to generate the above network according to the definition of the task. The specific algorithm is as follows:
Tasks-devices matching method
The matching mechanism of the tasks and devices needs to be designed after the definition of them. In this article, the parameters matching function library is like this
For a certain type of process parameter
System development and verification
In this section, a task analysis and matching prototype system is developed to verify the framework. The system framework includes three parts, comprising knowledge base management, devices management, and task management. Knowledge database management contains the managements of all parameters and processes, the mapping relation among them, and the matching functions. Devices management contains the management of all machineries’ information, such as basic information, related functions, parameters, processing time, and machining quality. Task management includes information definition and logic analysis of all tasks and the information of device matching.
Figure 4 shows the knowledge database management. Figure 4-A is the parameter sets and Figure 4-B is the process information and its parameter sets. Take the process of MF1 as an example, the parameters and their declaration is needed for processes matching, as shown in Figure 4-C
Figure 5 shows the device resources management. Figure 5-A is basic information of device. Take milling machine “X208C” for an example, its functions contain rectangular plane, rectangular groove, boss and its parameters include processing length and processing width. Figure 5-B is the functional information of device. Take welding device whose number is ZF500 for an example, its functional information has three parts. The first part is task time library, the second part is standard time, and the third part is the statistics of machining quality.

Interfaces of device resources management.
Figure 6 shows the task management. Figure 6-A is the interface of task definition. Take process T01S01 as an example, it has three executable devices according to the results of matching functions and its detailed execute parameters are shown in Figure 6-B. Figure 6-C shows the information of Petri network which is obtained according to the proposed process definition and the analysis method, including the information of transition, place, and incidence matrix.

Interfaces of task management.
This system implements the proposed method by setting up knowledge database and specifying tasks and devices definition. The executable device of each process, actuating logic of tasks and CPN are obtained by matching and analyzing, which provide effective support for the operation of CPPS.
Conclusion
To meet the intelligent requirements of CPPS, methods of tasks and resources matching and analysis are prerequisite foundation for the production system operation. To achieve this foundation, the definition rules of tasks and resources are set, and the matching method is designed. The logic model based on the color Petri net is designed to express the logic of the task implementation, and the forming algorithm is designed to guarantee the system intelligence. Finally, a prototype system has been developed, and the relevant examples and functions are built to verify the effectiveness of the relevant system and function.
The main contribution of this article is setting some definition rules and combining with some existing methods, and creatively designing some new methods such as the Petri net forming algorithm. All the methods combined together to guide the system to identify the implementation process of tasks, and implement them autonomously, which is achieved by a prototype system. This article provides foundations for autonomous CPPS operation and gives the necessary basis for further intelligent decision making of the system. The next major task is to research CPPS optimization operation mechanism such as scheduling rules.
