Disclosure of Invention
In view of the above, the invention provides a method and a device for judging and tracking vehicle types in a production line, which are used for solving the problems of high error rate and unmatched process caused by manual vehicle type judgment under the condition of various vehicle types during production of a production line with multiple vehicle types.
The invention discloses a method for judging and tracking a vehicle type of a production line, which comprises the following steps:
acquiring identification codes of various vehicle types, and presetting bar code characteristic values according to the identification codes;
grading the preset bar code characteristic value to obtain the priority of the bar code characteristic value;
reading the bar codes of the parts to be processed on the production line stations, comparing the bar codes of the parts to be processed with the preset bar code characteristic values according to the priority sequence, and judging the vehicle type;
acquiring corresponding process programs, process parameters, accessory types and quantity from an upper computer according to bar codes of parts to be processed and vehicle type judgment results;
processing the parts to be processed according to the corresponding process program, process parameters, accessory types and quantity;
and photographing and storing the processed parts, and uploading the information of the processed parts to an upper computer to generate a historical processing list corresponding to each station.
Preferably, the identification code is a continuous or discontinuous character string, and the format of the identification code is letters or a combination of letters and numbers.
Preferably, the barcode feature value includes a feature portion and a non-feature portion, wherein the feature portion is a corresponding identification code, the rest is the non-feature portion, and the digit number corresponding to the non-feature portion is replaced by a special character, and the special character is a special character different from the characters in the identification code.
Preferably, the preset bar code characteristic value is graded according to the number of special characters in the bar code characteristic value; sorting the bar code characteristic values from few to many according to the number of the special characters, and dividing the priority from high to low according to a sorting result.
Preferably, the bar code characteristic value is consistent with the length of a bar code of the part to be processed, and the bar code of the part to be processed contains part name information and applicable vehicle type information.
Preferably, the vehicle barcode to be determined is compared with a preset barcode characteristic value according to the priority order, and the vehicle type determination specifically comprises:
comparing the vehicle bar codes with the bar codes of the vehicles to be detected in sequence from high to low according to the priority of the bar code characteristic values of the vehicles, and comparing the bar codes of the vehicles to be detected with the corresponding positions of the bar code characteristic values of the vehicles successively; when in comparison, the comparison between any letter or number and the special character is judged to be successful, and if the comparison between the non-special characters is consistent, the comparison is judged to be successful; if the comparison of the high-grade vehicle type bar code characteristic values is successful, determining the vehicle type, otherwise, comparing the high-grade vehicle type bar code characteristic values with the low-grade vehicle type bar code characteristic values again; and if the bar code of the vehicle to be detected cannot be successfully compared with all the bar code characteristic values, newly adding the bar code characteristic values.
Preferably, before the processing the parts to be processed according to the corresponding process program, process parameters, types of fittings and number, the method further comprises: comparing the bar code, the vehicle type, the acquired process program, the process parameters, the accessory types and the number of the parts with a plan processing list on a corresponding station, checking whether the current processing queue processing plan is matched with the current vehicle parts, if the matching fails, judging that the parts to be processed are loaded wrongly, and acquiring the parts to be processed again or inserting the processing plan of the current parts into the plan processing list.
Preferably, the historical processing queue list comprises station numbers, bar codes of parts, vehicle types, process programs, process parameters, types and quantity of raw materials, processing starting time, processing ending time and processed pictures; and adding new part processing information to the end of the historical processing queue list every time one part is processed, so as to update the historical processing queue list of each station.
In a second aspect of the present invention, a device for determining and tracking a vehicle type in a production line is disclosed, the device comprising:
the characteristic value setting module: the system comprises a bar code acquisition module, a bar code display module and a control module, wherein the bar code acquisition module is used for acquiring identification codes of various vehicle types and presetting bar code characteristic values according to the identification codes; grading the preset bar code characteristic value to obtain the priority of the bar code characteristic value;
a vehicle type judging module: the system is used for reading the bar codes of the parts to be processed on the production line stations, comparing the bar codes of the vehicles to be judged with the preset bar code characteristic values according to the priority sequence, and judging the vehicle types;
part processing module: the system is used for acquiring corresponding process programs, process parameters, accessory types and quantity from an upper computer according to bar codes of vehicle parts to be processed and vehicle type judgment results; processing the parts to be processed according to the corresponding process program, process parameters, accessory types and quantity;
an uploading tracking module: the automatic part processing system is used for photographing and storing the processed parts and uploading the processed part information to the upper computer to generate a historical processing list corresponding to each station.
Preferably, the component processing module further comprises a component matching unit: the method is used for comparing the bar codes, vehicle types, acquired process programs, process parameters, accessory types and quantity of the parts with the planned processing list on the corresponding stations, checking whether the current processing queue processing plan is matched with the current vehicle parts, judging that the parts to be processed are mistakenly loaded if the matching fails, and reacquiring the parts to be processed or inserting the processing plan of the current parts into the planned processing list.
Compared with the prior art, the invention has the following beneficial effects:
1) the invention can quickly and accurately judge the vehicle type of the vehicle by presetting the bar code characteristic value and matching with the special character, particularly can quickly identify various small vehicle types aiming at the inclusion relationship among special vehicle types, and has high accuracy.
2) By using the method provided by the invention, workers do not need to carry out subjective judgment by experience, and the method has positive significance for improving the efficiency and reducing the cost for the production process change caused by vehicle type switching in the multi-vehicle type collinear production process.
3) And matching parts before processing the parts at each station to ensure the matching of the vehicle type and the production process, executing the processing according to a plan, updating the historical processing list of each station after the processing is finished, and realizing the tracking of the part processing process and the traceability of the whole production process of various vehicle types at each station.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
As shown in fig. 1, the present invention provides a method for determining and tracking vehicle models in a production line, comprising the following steps:
firstly, acquiring identification codes of various vehicle types, and presetting bar code characteristic values according to the identification codes;
the identification code is a continuous or discontinuous character string, and the format of the identification code is letters or a combination of letters and numbers. The identification code is formed by a manufacturer according to a set rule code, and identifies the vehicle type. During actual part processing, different parts can be distinguished by different bar codes according to the identification codes due to different types of the parts, applicable vehicle types and the like.
The bar code characteristic value comprises a characteristic part and a non-characteristic part, wherein the characteristic part is a corresponding identification code, the rest is the non-characteristic part, the digit number corresponding to the non-characteristic part is replaced by a special character, and the special character is a special character different from the characters in the identification code. The bar code characteristic value has uniqueness.
As shown in table 1, table 1 shows an example of the vehicle model and the corresponding barcode feature value, which is 10 in accordance with the barcode length of the component, and bits without features are replaced with special characters. The barcode feature value may be determined according to actual situations, and the barcode feature value in this embodiment is used for illustration only and is not meant to limit the present invention.
TABLE 1
Vehicle type number
|
Characteristic value of bar code
|
Vehicle type A
|
ABCD******
|
Vehicle type B
|
ABCD**45**
|
Vehicle type C
|
ABCD3456** |
Step two, grading the preset bar code characteristic values to obtain the priority of the bar code characteristic values;
the preset bar code characteristic value is graded according to the number of special characters in the bar code characteristic value, priority ranking is carried out according to the number of the special characters in the bar code, the number of the special characters is smaller, the grade is higher, the number of the special characters is larger, and the grade is lower. Thus, the bar code feature value priorities of Table 1 are ordered from high to low as: ABCD3456, ABCD 45, ABCD.
Thirdly, reading the bar codes of the parts to be processed on the production line stations, comparing the bar codes of the parts to be processed with the preset bar code characteristic values according to the priority sequence, and judging the vehicle type;
comparing the vehicle bar codes with the bar codes of the vehicles to be detected in sequence from high to low according to the priority of the bar code characteristic values of the vehicles, and comparing the bar codes of the vehicles to be detected with the corresponding positions of the bar code characteristic values of the vehicles successively; when in comparison, the comparison between any letter or number and the special character is judged to be successful, and when the comparison between the non-special characters is consistent, the comparison is judged to be successful; if the comparison of the high-grade vehicle type bar code characteristic values is successful, determining the vehicle type, otherwise, comparing the high-grade vehicle type bar code characteristic values with the low-grade vehicle type bar code characteristic values again;
taking 5 bar codes with the length of 10 cars as an example, the bar code values are respectively as follows: ABCD123456, ABCD234567, ABCD244567, ABCD345678, AB 23456789.
1) ABCD 123456: comparing ABCD123456 with ABCD3456, wherein the 5 th to 8 th positions are 1234 and 3456 respectively, if the comparison is inconsistent, then comparing ABCD123456 with ABCD 45, wherein the 7 th and 8 th positions are 34 and 45 respectively, if the comparison is inconsistent, and finally comparing ABCD123456 with ABCD, because the comparison of special characters with any letter and number is successful. Therefore, ABCD123456 is determined as vehicle type a.
2) ABCD 234567: comparing ABCD234567 with ABCD3456, wherein positions 5 to 8 are 2345 and 3456 respectively, and if the comparison is not consistent, comparing ABCD234567 with ABCD 45, since the comparison of special characters with any letters and numbers is successful. Accordingly, ABCD234567 is determined as model B.
3) ABCD 244567: comparing the ABCD244567 with the ABCD3456, wherein the 5 th to 8 th positions are 2445 and 3456 respectively, and if the comparison is not consistent, comparing the ABCD244567 with the ABCD 45 since the special characters are successfully compared with any letters and numbers. Thus, ABCD244567 was determined as vehicle type B.
4) ABCD 345678: the ABCD345678 was compared with ABCD3456 x, since the special characters were successfully compared with any letters and numbers. Therefore, ABCD345678 is determined as vehicle type C.
5) AB 23456789: AB23456789 was aligned with all barcode feature values ABCD3456, ABCD 45, ABCD, and failed to match. At this time, it is indicated that the barcode has no feature value, and a new preset barcode feature value needs to be added.
Fig. 2 is a schematic flow chart of vehicle type determination according to the present invention. The invention can quickly and accurately judge the vehicle type of the vehicle by presetting the bar code characteristic value and matching with the special character, and can quickly identify various small vehicle types especially aiming at the inclusion relationship among special vehicle types.
Acquiring corresponding processing information, such as a process program, process parameters, types and quantity of accessories, from an upper computer according to the bar codes of the parts to be processed and the vehicle type judgment result;
and step five, comparing the bar codes, the vehicle types, the acquired process programs, the process parameters, the accessory types and the number of the parts with the planned processing list on the corresponding stations, checking whether the current processing queue processing plan is matched with the current vehicle parts, judging that the parts to be processed are in a feeding error if the matching fails, and re-acquiring the parts to be processed or inserting the processing plan of the current parts into the planned processing list.
Sixthly, processing the parts to be processed according to the corresponding process programs, process parameters, accessory types and the number;
the upper computer is communicated with all stations on a production line, and sends a planned processing list to all stations when the production is started, and all stations process parts in a queue mode according to the planned processing list. After the vehicle type is identified, each station acquires the corresponding process program, process parameters, accessory types and quantity from the upper computer, then compares the process program, the process parameters, the accessory types and the quantity with the part information of the head of the current queue in the plan machining list, if the comparison is consistent, the machining is executed, otherwise, the feeding is considered to be wrong, and the part to be machined is acquired again or the machining plan of the current part is inserted into the plan machining list of the current station. The invention can quickly adapt to the production process change caused by vehicle type switching in the multi-vehicle type collinear production process, quickly match the corresponding production process, compare with the processing plan list on the corresponding station, and ensure that the vehicle type is matched with the production process and simultaneously can be executed according to the production plan of each station.
And step seven, photographing and storing the processed parts, and uploading the information of the processed parts to an upper computer to generate a historical processing list corresponding to each station.
The historical processing queue list comprises station numbers, part bar codes, vehicle types, process programs, process parameters, raw material types and quantities, processing starting time, processing ending time and processed pictures; and adding new part processing information to the end of the historical processing queue list every time one part is processed, so as to update the historical processing queue list of each station. And after the machining is finished, the historical machining lists of all the stations are updated, and the tracking of the machining process of parts of various vehicle types of all the stations and the traceability of the whole production process are realized.
Corresponding to the embodiment of the method, the invention also provides a device for judging and tracking the vehicle type of the production line, which comprises the following steps:
the characteristic value setting module: the system comprises a bar code acquisition module, a bar code display module and a control module, wherein the bar code acquisition module is used for acquiring identification codes of various vehicle types and presetting bar code characteristic values according to the identification codes; grading the preset bar code characteristic value to obtain the priority of the bar code characteristic value;
a vehicle type judging module: the system is used for reading the bar codes of the parts to be processed on the production line stations, comparing the bar codes of the vehicles to be judged with the preset bar code characteristic values according to the priority sequence, and judging the vehicle types;
part processing module: the system is used for acquiring corresponding process programs, process parameters, accessory types and quantity from an upper computer according to bar codes of vehicle parts to be processed and vehicle type judgment results; processing the parts to be processed according to the corresponding process program, process parameters, accessory types and quantity; the part processing module further comprises a part matching unit: the method is used for comparing the bar codes, vehicle types, acquired process programs, process parameters, accessory types and quantity of the parts with the planned processing list on the corresponding stations, checking whether the current processing queue processing plan is matched with the current vehicle parts, judging that the parts to be processed are mistakenly loaded if the matching fails, and reacquiring the parts to be processed or inserting the processing plan of the current parts into the planned processing list.
An uploading tracking module: the automatic part processing system is used for photographing and storing the processed parts and uploading the processed part information to the upper computer to generate a historical processing list corresponding to each station.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.