Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for measuring a vehicle body part, and a PLC of a measurement workstation, so as to reduce the amount of work for programming a measurement program and reduce the error rate of the program.
In a first aspect, the embodiment of the invention provides a method for measuring a vehicle body component, which is applied to a PLC of a measuring workstation; the method comprises the following steps: collecting identity information of a measured object; judging whether the identity information is matched with a measurement task issued in advance; if so, analyzing to obtain configuration information corresponding to the identity information, and sending the configuration information to the measurement control system so that the measurement control system can obtain a measurement program matched with the identity information from a measurement program library stored in advance, and measuring the measured object according to the measurement program; wherein, the general program and the special program are stored in the measuring program library.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the step of acquiring identity information of a measured object includes: the RFID tag disposed on the object to be tested is read by an RFID (Radio Frequency Identification) reader/writer, and the identity information is obtained.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the step of determining whether the identity information matches a measurement task issued in advance includes: and if the identity information is not matched with the measurement task, generating an alarm signal so as to enable the object to be measured to return to the welding line.
With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the measurement library is created by: adopting PC-DMIS (Personal Computer-Dimensional measuring interface Specification of Personal Computer) measuring software to decompose the measuring program of the vehicle body parts of the same vehicle type into a general program and a special program; and saving the general program and the special program as a measurement program library of the current vehicle type.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the sending the configuration information to the measurement control system, so that the measurement control system obtains a measurement program matched with the identity information from a measurement program library stored in advance, and the step of measuring the object to be measured according to the measurement program includes: and sending the configuration information to a controller of the measuring machine, so that the controller extracts the general program and the special program matched with the identity information from the measuring program library, and controlling the corresponding measurer to measure the measured object according to the general program and the special program.
In a second aspect, the embodiment of the invention further provides a measuring device for a vehicle body component, which is arranged on the PLC of the measuring workstation; the device includes: the acquisition module is used for acquiring the identity information of the object to be detected; the verification module is used for judging whether the identity information is matched with a measurement task issued in advance; the configuration module is used for analyzing and obtaining configuration information corresponding to the identity information if the identity information is matched with a measurement task issued in advance, and sending the configuration information to the measurement control system so that the measurement control system can obtain a measurement program matched with the identity information from a measurement program library stored in advance and measure a measured object according to the measurement program; wherein, the general program and the special program are stored in the measuring program library.
With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, where the acquisition module is further configured to: and reading the RFID label arranged on the object to be tested by the RFID reader-writer to obtain the identity information.
With reference to the second aspect, an embodiment of the present invention provides a second possible implementation manner of the second aspect, where the verification module is further configured to: and if the identity information is not matched with the measurement task, generating an alarm signal so as to enable the object to be measured to return to the welding line.
With reference to the second aspect, an embodiment of the present invention provides a third possible implementation manner of the second aspect, where the configuration module is further configured to: and sending the configuration information to a controller of the measuring machine, so that the controller extracts the general program and the special program matched with the identity information from the measuring program library, and controlling the corresponding measurer to measure the measured object according to the general program and the special program.
In a third aspect, an embodiment of the present invention further provides a PLC of a measurement workstation, including a memory and a processor, where the memory is used to store one or more computer instructions, and the one or more computer instructions are executed by the processor to implement the measurement method for the vehicle body component.
The embodiment of the invention has the following beneficial effects:
according to the measuring method and device for the vehicle body part and the PLC of the measuring workstation, the measuring control system is pre-stored with the measuring program library, and after the PLC collects the identity information of the measured object, whether the identity information is matched with a pre-issued measuring task is judged; if so, sending the configuration information corresponding to the identity information to a measurement control system, acquiring a measurement program matched with the identity information from a measurement program library by the system, and measuring the measured object according to the measurement program; wherein, the general program and the special program are stored in the measuring program library. The method calls out the required measuring program blocks from the program library according to different vehicle type configurations, reduces the workload of programming the measuring program, and simultaneously reduces the error rate of the program.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
A vehicle type configuration corresponds to the measurement mode of a measurement procedure, often need the same vehicle type every time a configuration appears, need to compile a set of test procedure; when a programmer compiles a program, program setting change caused by data change needs to be updated in all measuring program segments, manual updating of the programmer is easy to miss, and workload is huge; in addition, vehicle type configuration information needs manual judgment of an operator, configuration information of similar configuration is easy to confuse, and accordingly the existing vehicle body part measuring mode is large in workload and high in error rate. The technique may be implemented by associated software or hardware, and is described below by way of example.
Referring to FIG. 1, a flow chart of a method of measuring a vehicle body component; the method is applied to the PLC of the measuring workstation; the method comprises the following steps:
step S102, collecting identity information of a measured object;
the object to be measured may be a part constituting a vehicle, such as a body-in-white, a door, a front cover, a rear cover, etc.; before a measured object enters a measuring workstation, a label, such as a graphic label (including a two-dimensional code and a bar code), an electronic label and the like, is arranged on the measured object in advance; the tag can mark the identity information of the object to be measured, such as the vehicle type, configuration, state information, vehicle number and the like of the object to be measured, so that the PLC convenient for measurement can automatically identify the identity information of the object to be measured and find a corresponding program according to the identity information of the object to be measured to measure; the label is arranged, so that the object to be detected can be tracked and monitored in real time, the progress condition of the object to be detected can be acquired in time, and the production line can be managed and adjusted in a unified manner.
Step S104, judging whether the identity information is matched with a measurement task issued in advance;
a Manufacturing Execution System (MES) System generally issues a measurement task to a measurement workstation; the measurement task usually carries information such as vehicle type configuration of a measurement object; in order to prevent the identity information and the measurement task of the object to be measured from causing a measurement error, it is necessary to first determine whether the identity information of the object to be measured matches with the measurement task issued in advance, and when the identity information matches with the measurement task issued in advance, the following operations can be performed.
Step S106, if so, analyzing to obtain configuration information corresponding to the identity information, sending the configuration information to the measurement control system, so that the measurement control system obtains a measurement program matched with the identity information from a measurement program library stored in advance, and measuring the measured object according to the measurement program; wherein, the measuring program library stores general programs and special programs.
The measurement program library usually stores program blocks which may be used for measuring all configurations of a vehicle type; for example, vehicle type A includes an economy configuration, a comfort standard configuration, and a luxury configuration; when testing the tested object corresponding to the economic configuration, the program block 1 and the program block 2 in the general program and the special program corresponding to the economic configuration may be used; in testing the object under test corresponding to the luxury configuration, the block 2, the block 3, and the block 4 in the general-purpose program, and the special-purpose program corresponding to the luxury configuration may be used.
When the identity information is matched with a measurement task issued in advance, the PLC of the measurement workstation can analyze the configuration information corresponding to the identity information and send the configuration information to a measurement control system, the measurement control system is generally installed in a control cabinet of a measuring machine, the measurement control system calls a general program and a special program matched with the identity information from a measurement program library stored in advance, and a measured object is measured according to a measurement range program.
According to the measuring method of the vehicle body part, provided by the embodiment of the invention, the measuring control system is pre-stored with the measuring program library, and after the PLC acquires the identity information of the measured object, the PLC judges whether the identity information is matched with a pre-issued measuring task; if so, sending the configuration information corresponding to the identity information to a measurement control system, acquiring a measurement program matched with the identity information from a measurement program library by the system, and measuring the measured object according to the measurement program; wherein, the general program and the special program are stored in the measuring program library. The method calls out the required measuring program blocks from the program library according to different vehicle type configurations, reduces the workload of programming the measuring program, and simultaneously reduces the error rate of the program.
Referring to FIG. 2, a flow chart of another method of measuring a vehicle body component is shown; the method is implemented on the basis of the method shown in fig. 1, which is applied to the PLC of the measurement workstation; in the method, firstly, a measurement program library is established through steps S202 and S204, and the method comprises the following steps:
step S202, decomposing a measurement program of the vehicle body parts of the same vehicle type into a general program and a special program by adopting PC-DMIS measurement software;
the steps are that a measurement program library is established, a PC-DMIS secondary development function is used, a body-in-white and part measurement program of the same vehicle type is decomposed into a general program and a special program, flexible measurement is realized, and management and configuration of a measurement workstation are facilitated; generally, a measurement program library is established for the same vehicle type, and when configuration information changes, program setting changes caused by all data changes only need to be uniformly changed in the program library corresponding to the vehicle type; when the same vehicle type has only one program library and brand new configuration, the requirement can be met only by updating the configuration list or adding new program blocks.
Step S204, storing the general program and the special program as a measurement program library of the current vehicle type;
specifically, the measurement library is a module-based storage of measurement programs, i.e., blocks; the modular measuring program includes but is not limited to an independent measuring program, a subprogram set, an integrated measuring program made in a high-level measuring programming language, and the like, which are stored in a module form; the storage form of the program block includes but is not limited to local storage, network storage, removable media storage, etc.
Step S206, reading the RFID label arranged on the object to be tested through the RFID reader-writer to obtain identity information;
as shown in the schematic overall structure diagram of the measurement workstation shown in fig. 3, an RFID reader (in fig. 3, an ultra-high frequency RFID reader is taken as an example) may be disposed at an entrance of the measurement workstation, and is in communication connection with the PLC; before a measured object enters a measuring workstation, an RFID label is adhered to the measured object, the RFID label is used for storing identity information of the measured object, can be adhered to the measured object and can also be adhered to a measuring support, and the identity information of the measured object comprises vehicle state information, vehicle numbers and the like; the method comprises the following steps that a measured object enters a measuring workstation, and an RFID reader-writer reads an RFID label pasted on the measured object to obtain identity information stored in the RFID label; the RFID reader-writer can use a high-frequency or ultrahigh-frequency reader-writer, the reading-writing mode can be combined with an AGV (automatic Guided Vehicle) or other delivery vehicles to realize automatic reading-writing, and the handheld RFID reader-writer can also be used for manual reading-writing.
Step S208, judging whether the identity information is matched with the measurement task; if not, executing step S210; if yes, go to step S212; specifically, the PLC of the measurement workstation compares the identity information on the RFID tag of the object to be measured read by the RFID reader with the measurement task issued by the MES system, and judges whether the identity information is matched with the measurement task.
Step S210, generating an alarm signal to enable the object to be measured to return to the welding line;
when the identity information is not matched with the measurement task issued in advance, the PLC of the measurement workstation sends an alarm signal and prompts the measured object to return to the welding line; generally, vehicle state information and vehicle numbers stored in the RFID electronic tags are compared with measurement order requirements directly issued by an MES; the reasons for mismatching the identity information with the measurement task are roughly divided into two types, one of which is the error sending of the measured object; the second is that the welding line temporarily changes the vehicle number, resulting in the discrepancy between the vehicle number and the vehicle state information.
And step S212, analyzing the configuration information corresponding to the identity information, sending the configuration information to a controller of the measuring machine, so that the controller extracts the general program and the special program matched with the identity information from the measuring program library, and controlling the corresponding measurer to measure the measured object according to the general program and the special program.
Specifically, the analyzed configuration information is transmitted to a measurement control system, a measurement task is controlled by the measurement control system, the measurement control system is installed in a control cabinet of the measuring machine, consists of electronic elements such as a PLC (programmable logic controller) and the like and is provided with special control software, and the measurement control system calls a corresponding measurement program block from a measurement program library to carry out measurement; for example, a schematic of the structure of a measurement library for a body part as shown in FIG. 4; the measurement library includes a plurality of blocks, for example, a block 1 is an MT (manual Transmission) nacelle block, and a block 2 is an AT (Automatic Transmission) nacelle block. When the RFID configuration information is comfort standard configuration, the control system can call 2, 4, 6, 9, 10 and 14 program blocks from a program library; when the RFID configuration information is a hybrid luxury configuration, the control system may call 3, 4, 8, 9, 13, 14 blocks from the library.
The method realizes that one program library is established for the same vehicle type, and the program setting changes caused by all data changes only need to be changed in the program library in a unified way; establishing a program library, wherein only one program library is arranged in the same vehicle type, and when brand new configuration occurs, the requirement can be met only by updating a configuration list or adding a new program block; reading the information of the measured object by using an RFID reader-writer, and comparing the information with a measurement task issued by an MES (manufacturing execution system) to avoid misjudgment during manual identification; the workload and the error rate of the existing vehicle body part measuring mode are reduced.
The embodiment of the invention also provides another measuring method of a vehicle body component, which is realized on the basis of the method shown in the figure 1 or the figure 2, and as shown in the figure 5, the method comprises the following steps:
step S502, the measured object enters a measuring workstation;
step S504, the RFID reader-writer identifies object information;
step S506, comparing whether the object information is consistent with the MES task; if yes, go to step S508; if not, executing step S510;
step S508, the RFID information is input into the control system;
step S510, calling a corresponding program block from a program library;
and step S512, the measuring machine carries out detection.
The mode provides an automatic detection technology based on the ultrahigh frequency RFID, the problem that different measurement programs need to be woven for different configurations of the same vehicle type at present is solved, and the workload and the error rate of the existing vehicle body part measurement mode are reduced.
In correspondence with the above method embodiment, an embodiment of the present invention provides a measuring apparatus for a vehicle body component, as shown in fig. 6, the apparatus including:
the acquisition module 60 is used for acquiring the identity information of the object to be detected;
the verification module 61 is used for judging whether the identity information is matched with a measurement task issued in advance;
the configuration module 62 is configured to, if the identity information matches with a measurement task issued in advance, analyze the identity information to obtain configuration information corresponding to the identity information, and send the configuration information to the measurement control system, so that the measurement control system obtains a measurement program matching with the identity information from a measurement program library stored in advance, and measures a measured object according to the measurement program; wherein, the general program and the special program are stored in the measuring program library.
The above-mentioned collection module is further configured to: and reading the RFID label arranged on the object to be tested by the RFID reader-writer to obtain the identity information.
The verification module is further configured to: and if the identity information is not matched with the measurement task, generating an alarm signal so as to enable the object to be measured to return to the welding line.
The configuration module is further configured to: and sending the configuration information to a controller of the measuring machine, so that the controller extracts the general program and the special program matched with the identity information from the measuring program library, and controlling the corresponding measurer to measure the measured object according to the general program and the special program.
According to the measuring device for the vehicle body part, provided by the embodiment of the invention, the measurement control system is pre-stored with the measurement program library, and the PLC acquires the identity information of the measured object and then judges whether the identity information is matched with a pre-issued measurement task; if so, sending the configuration information corresponding to the identity information to a measurement control system, acquiring a measurement program matched with the identity information from a measurement program library by the system, and measuring the measured object according to the measurement program; wherein, the general program and the special program are stored in the measuring program library. The method calls out the required measuring program blocks from the program library according to different vehicle type configurations, reduces the workload of programming the measuring program, and simultaneously reduces the error rate of the program.
The present embodiment provides a PLC of a measurement workstation, as shown in fig. 7, which includes a memory 100 and a processor 101; the memory 100 is used to store one or more computer instructions, which are executed by the processor to implement the above-described method for measuring a body part, which may include one or more of the above methods.
Further, the PLC shown in fig. 7 further includes a bus 102 and a communication interface 103, and the processor 101, the communication interface 103, and the memory 100 are connected through the bus 102.
The Memory 100 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus 102 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 7, but this does not indicate only one bus or one type of bus.
The processor 101 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 101. The Processor 101 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps, and logic blocks disclosed in the embodiments of the present disclosure may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present disclosure may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100, and completes the steps of the method of the foregoing embodiment in combination with the hardware thereof.
The embodiment of the present invention further provides a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the method for measuring the vehicle body component.
The PLC of the measurement workstation according to the embodiment of the present invention has the same implementation principle and technical effect as those of the foregoing method embodiment, and for brief description, reference may be made to corresponding contents in the foregoing method embodiment for a part not mentioned in the apparatus embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.