[0041] The present invention will be further described below in conjunction with the drawings.

[0042] Reference figure 1 , A product process tracking method based on a flexible manufacturing system, the product process tracking method includes the following steps:

[0043] 1) Parameter initialization:

[0044] 1.1) Set the flexible manufacturing system process group number to g, where the domain of g is D g ={0

[0045] 1.2) Set the total number of processes in each group to N g , N max Number of processes for all process groups N g The maximum value of N g Is defined as

[0046] 1.3) Set the process number of each group to x g , Where x g Is defined as

[0047] 1.4) Set the process of product P in group g as y g , Y g Is defined as And D is The set of all process codes in base system;

[0048] 1.5) Set the process code through which product P has been processed as D p =y 1 y 2 …Y i …Y g , Where i process group number, the definition domain is D i ={i|0

[0049] 1.6) Put D p Initialize D p =AA...A...A, i=1;

[0050] 2) Record the process of product P:

[0051] 2.1) Judge whether the production of product P is started, if the production of product P is started, go to step 2.2);

[0052] 2.2) Obtain the process group i of the production of product P;

[0053] 2.3) Get the process number x in which product P is being produced g , And encode the processing steps of the product P in the process group to obtain the process y that the product P passes through in the process group i i , Change the process code D passed by product P p =y 1 y 2 …Y i …Y g;

[0054] 2.4) Judge whether the current process is completed, if the production is completed, go to step 2.5);

[0055] 2.5) Judge whether the production of the product P in the current process group is completed, if the production is completed, go to step 2.6), otherwise skip to step 2.3);

[0056] 2.6) Judge whether the production of the current product P is completed, if the production is completed, go to step 3), otherwise return to step 2.2);

[0057] 3) Process of obtaining product P:

[0058] 3.1) Obtain the process code D passed by product P p =y 1 y 2 …Y i …Y g;

[0059] 3.2) Analyze process code D p , To obtain the processes passed in the processing of the product P.

[0060] Further, in the step 1.4), create The process of the collection of all the process codes in the base is as follows:

[0061] 1.4.1) Each set of procedures is not greater than N max It consists of a process, that is, the process of the process group passed by the product P can be composed of N max Bit binary representation;

[0062] 1.4.2)N max All combinations of bit binary 0 and 1 are all possible situations in which the product P passes through the processes of the process group;

[0063] 1.4.3) Put N max All combinations of bit binary 0 and 1 are converted to Base, identified with a specific coded identifier.

[0064] Furthermore, in the step 2.3), the coding method for the processing procedure in the procedure group is as follows:

[0065] 2.3.1) Obtain the process group i where the product P is located;

[0066] 2.3.2) The binary position corresponding to the process in the process group i through the product P is 1;

[0067] 2.3.3) Put N max Bit binary converted to Base y i Said.

[0068] Furthermore, in the step 3.2), the process code D is analyzed p The method is as follows:

[0069] 3.2.1) Obtain the total number of process groups g, and set the analysis process index j = 0;

[0070] 3.2.2) If j

[0071] 3.2.3) will Base y j Reverse decoding to binary, the bit where the binary is 1 is that product P has gone through all the corresponding processes in process group g;

[0072] 3.2.4) Index j=j+1, go to step 3.2.2).

[0073] In this embodiment, a modular flexible manufacturing integrated training system is taken as an example. A method for tracking product processes based on a flexible manufacturing system includes the following steps:

[0074] 1) Parameter initialization:

[0075] 1.1) Set the flexible manufacturing system process group number to g, where the domain of g is D g ={0

[0076] 1.2) Set the total number of processes in each group to N g , N max Number of processes for all process groups N g Maximum value and N max =64, where N g Is defined as

[0077] 1.3) Set the process number of each group to x g , Where x g Is defined as

[0078] 1.4) Set the process of product P in group g as y g , Y g Is defined as And D is The set of all process codes in the base, that is, each group of processes consists of no more than N max It consists of a process, that is, the process of the process group passed by the product P can be composed of N max Bit binary representation, N max All combinations of bit binary 0 and 1 are all possible situations in which product P passes through the processes of this process group, and N max All combinations of bit binary 0 and 1 are converted to Base, use a specific coded identifier to form a process code set;

[0079] Table 1 is a 64-ary encoding table, as follows:

[0080]

[0081] Table 1

[0082] 1.5) Set the process code through which product P has been processed as D p =y 1 y 2 …Y i …Y g , Where i process group number, the definition domain is D i ={i|0

[0083] 1.6) Put D p Initialize D p =AA...A...A, i=1;

[0084] 2) Record the process of product P:

[0085] 2.1) Judge whether the production of product P is started, if the production of product P is started, go to step 2.2);

[0086] 2.2) Obtain the process group i of the production of product P;

[0087] 2.3) Get the process number x in which product P is being produced g , And encode the processing steps of the product P in the process group to obtain the process y that the product P passes through in the process group i i , Change the process code D passed by product P p =y 1 y 2 …Y i …Y g; The coding method of the processing operation in the operation group is as follows:

[0088] 2.3.1) Obtain the process group i where the product P is located;

[0089] 2.3.2) The binary position corresponding to the process in the process group i through the product P is 1;

[0090] 2.3.3) Put N max Bit binary converted to Base y i Means

[0091] 2.4) Judge whether the current process is completed, if the production is completed, go to step 2.5);

[0092] 2.5) Judge whether the production of the product P in the current process group is completed, if the production is completed, go to step 2.6), otherwise skip to step 2.3);

[0093] 2.6) Judge whether the production of the current product P is completed, if the production is completed, go to step 3), otherwise return to step 2.2);

[0094] 3) Process of obtaining product P:

[0095] 3.1) Obtain the process code D passed by product P p =y 1 y 2 …Y i …Y g;

[0096] 3.2) Analyze process code D p , Get the process passed through in the processing of product P; analyze process code D p The method is as follows:

[0097] 3.2.1) Obtain the total number of process groups g, and set the analysis process index j = 0;

[0098] 3.2.2) If j

[0099] 3.2.3) will Base y j Reverse decoding to binary, the bit where the binary is 1 is that product P has gone through all the corresponding processes in process group g;

[0100] 3.2.4) Index j=j+1, go to step 3.2.2).

[0101] What has been described above is the excellent effect of an embodiment of the present invention. Obviously, the present invention is not only suitable for the above-mentioned embodiments, but can be used without departing from the basic spirit of the present invention and without exceeding the content involved in the essence of the present invention. Make various changes and implement them.