Labview-based pulse forming machine control and acquisition method
Patent Information
- Application Number
- CN202411081561.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2025-03-11
AI Technical Summary
[0006]鉴于此,本发明提供一种基于labview来控制的针对于脉冲成形机的自动充放电以及信号采集的方法,旨在解决上述成本比较高、触摸屏采集到的图像精度低和采集速度慢的技术问题
[0017] Advantageous effects of the present invention: The present invention is controlled based on labview for automatic charging and discharging of the pulse forming machine, and the signal acquisition is collected and collected and collected by the pulse forming machine. The control method based on labview realizes the visualization requirement of monitoring and testing of various environments of pulse forming by labview. Ethernet replaced the traditional RS485 bus transmission, solving the problem of low efficiency and long transmission distance, real-time monitoring of pulse forming equipment; through identification and judgment of the read data, the accuracy of the collected data is ensured; the control acquisition mode of the touch screen is abandoned, solving the problem of excessive cost and high control acquisition requirements.
Smart Images

Figure CN119596828A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of electromagnetic pulses, and in particular relates to a method for controlling automatic charging and discharging and signal acquisition of a pulse forming machine based on LabVIEW. Background Art
[0002] Electromagnetic forming technology has the characteristics of easy and precise control of processing energy, fast forming speed, high precision of formed workpieces, small springback of parts after forming, improved plastic deformation capacity of materials, simple molds and strong versatility of equipment, facilitation of the use of composite processes and realization of automated production, and the entire forming process is green and environmentally friendly. It has been widely used in many fields such as aviation, aerospace, weapons industry, automobile manufacturing, light chemical industry, instrumentation and electronics, etc.
[0003] Electromagnetic forming can be widely used in flat plate forming, plate blanking, punching, electromagnetic expansion and reduction of pipes, flanging and connection, embossing and forming, multi-process composite forming, assembly of assembly parts, powder compaction, electromagnetic riveting, electromagnetic welding and sealing of radioactive materials, etc. It is the preferred forming method for some special parts.
[0004] The important feature of electromagnetic forming is that the energy release time is short, only in microseconds, while the material deformation time is in the 6 milliseconds level, which places high demands on control and acquisition.
[0005] At present, a touch screen is used on a pulse forming machine and a PLC is used to control the automatic charging and discharging action and signal acquisition. This requires the configuration of a touch screen and a platform, which has the problems of high cost, low image accuracy and slow acquisition speed. Summary of the invention
[0006] In view of this, the present invention provides a method for automatic charging and discharging and signal acquisition of a pulse forming machine based on LabVIEW control, aiming to solve the above-mentioned technical problems of high cost, low image accuracy and slow acquisition speed acquired by the touch screen.
[0007] The technical solution of the present invention is: a control and acquisition method of a pulse shaping machine based on LabVIEW, which is characterized by comprising the following steps: (1) A Windows-based host computer is used, on which LabVIEW software, parameter setting module, system control module, data acquisition and analysis display module, and data storage module are installed; LabVIEW software is deployed on the Windows system and the program is operated; a slave computer is used, and the slave computer and the host computer are connected to each other through a serial port; the host computer and the control and acquisition system PLC of the pulse shaping machine are connected to each other through a serial port; (2) Inputting the pulse forming machine's forming parameters and working instructions according to the user's setting through the parameter setting module; (3) The system control module is used to control the pulse forming machine, send parameters and work instructions to the lower computer, complete the corresponding actions through the PLC, realize the cyclic automatic charging and discharging of the charger of the pulse forming machine, and feed back the action results and data to the acquisition and analysis display module; (4) At the same time, the data acquisition and analysis display module configures the interface parameters through the serial port, reads the serial data in a loop and puts it in the data queue. The LabVIEW program automatically identifies the correct data and collects the correct data into the program array. The output results are displayed on the host computer and saved in the data storage module.
[0008] In step (1) of the technical solution of the present invention, the host computer is also equipped with a user setting module, which communicates with the PLC by setting a corresponding serial port.
[0009] In step (1) of the technical solution of the present invention, a login module is also installed on the host computer, and the login module has administrator and operator account and password settings; in step (2), before inputting parameters and work instructions, operator password login is required.
[0010] The parameter setting module described in the technical solution of the present invention adopts a dll file, and the data to be added are added using an input sub-vi, and the data to be displayed are added using an output sub-vi.
[0011] In the technical solution of the present invention, there are 4 sub-VI modules under one main program, which are used to set relevant parameters during system operation to ensure that the pulse forming machine can complete the forming of materials according to user requirements and communicate with the PLC by setting the corresponding serial port.
[0012] In step (2) described in the technical solution of the present invention, a dll. file is used to encapsulate the input instructions that require a given action and the output instructions that need to be returned for display into a modular sub-vi; in step (3) described, the system control module directly calls the encapsulated modular sub-vi, and by calling the dll. function, the connected address corresponds to the address of the pulse forming machine PLC, thereby realizing the control of the pulse forming machine.
[0013] In the technical solution of the present invention, in the process of controlling the charging and discharging of the charger, the charging and discharging interval can be set, and the charging and discharging can be completed by controlling the switch unit through the optical fiber signal, thereby realizing cyclic automatic charging and discharging.
[0014] The data acquisition and analysis display module described in the technical solution of the present invention sends instructions and real-time collects the returned current and voltage signals through the configured acquisition card, converts the hexadecimal data of the voltage signal collected by the acquisition card into decimal data to obtain the voltage value, amplifies the collected current signal by 8.69 times to obtain the current value, arranges the voltage value through an array, and displays the waveform after filtering through a median filter.
[0015] The collected data described in the technical solution of the present invention is with an identification code. The identification code is added to the data frame header and the data frame tail. The middle is the required data returned. In order to ensure the correctness of the collected data, the instruction 01 03 03 01 00 64 15 A5 is sent to the PLC, and 100 groups of data will be returned. The frame header is 01 03 C8, and the frame tail is an ASCII code composed of 100 groups of numbers. The next group of instructions sent to the PLC is 01 03 03 65 00 64 54 7A, and the next group of 100 data will be returned. Each instruction corresponds to 100 groups of data, and so on; the frame header, the frame tail and the total amount of data characters returned therein are determined. The frame header, the frame tail and the total amount of characters will be identified in the labview program. Only when the three blocks are met at the same time, it is proved that the collected data is correct data and will be collected into the array of the program, eliminating the need for manual identification and manual input of instructions.
[0016] In step (1) described in the technical solution of the present invention, after the administrator logs in successfully, he can choose to enter the operating system interface or the user management interface. After entering the user management interface, he can add, delete, modify and check the user information of the system, which has an anti-accidental deletion function. When the administrator and the operator delete all, a pop-up alarm will be displayed and the system cannot be exited. After entering the operating system interface, the user information is stored in the database; the administrator will get an error message when entering the password. If the number of error messages exceeds 10 times in a row, the login system will be locked; in step (2), the operator logs in and enters the operating system interface, and the user information is stored in the database; the operator will get an error message when entering the password. If the number of error messages exceeds 10 times in a row, the login system will be locked; in step (4), the data storage module is used to save the output results in the form of an image or Excel table to a custom location, and an Access database is used to connect with the customer database.
[0017] Beneficial effects of the present invention: The present invention is based on LabVIEW to control the automatic charging and discharging and signal acquisition of the pulse forming machine. The LabVIEW program is used to adjust the relevant parameters to reach the set value, and the switch unit is controlled by the optical fiber signal to complete the charging and discharging. At the same time, the signal returned to the acquisition card is collected and analyzed. The control method based on LabVIEW realizes the visualization requirements for monitoring and testing various environments of pulse forming. Ethernet replaces the traditional RS485 bus transmission, which solves the problems of low efficiency, long time and short transmission distance, and realizes real-time monitoring of pulse forming equipment; by identifying and judging the read data, the accuracy of the collected data is guaranteed; the control acquisition mode of the touch screen is abandoned, which solves the problems of high cost and high control acquisition requirements.
[0018] The present invention has the characteristics of saving manpower and time costs, being applicable to cyclic operations and greatly improving the level of production automation, and is mainly used for a control method for automatic charging and discharging of a pulse forming machine and signal acquisition. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely embodiments of the invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0020] Figure 1 A schematic diagram of the structure of a pulse shaping equipment control and acquisition system based on the NI Labview platform provided by the present invention.
[0021] Figure 2 The host computer labview front-end setting interface provided by the embodiment of the present invention.
[0022] Figure 3 A real-time display interface provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0023] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0024] like Figures 1 to 3 As shown, an embodiment of a control and acquisition method of a pulse shaper based on LabVIEW of the present invention adopts a host computer, a slave computer, and a control and acquisition system PLC in the pulse shaper.
[0025] The structure of the pulse shaping equipment control and acquisition system based on the NI Labview platform is as follows: Figure 1As shown, it includes a Labview platform and data acquisition, control, PLC unit and monitoring output connected thereto, wherein the PLC unit is connected to a current acquisition unit, the current acquisition unit is connected to a sensor, and the sensor is connected to a pulse shaping device.
[0026] The host computer is equipped with labview software, which is deployed on the Windows system. The host computer is also equipped with a login module, a user setting module, a parameter setting module, a system control module, a data acquisition and analysis display module, and a data storage module. Labview runs the program on the Windows system and sends the set parameters and work instructions to the lower computer.
[0027] The lower computer communicates with the upper computer, completes corresponding actions according to the instructions issued by the upper computer, and feeds back the action results and data to the upper computer.
[0028] The data acquisition and analysis display module described above sends instructions and real-time acquisition of the returned current and voltage signals through the configured acquisition card, converts the hexadecimal data of the voltage signal acquired by the acquisition card into decimal data to obtain the voltage value, amplifies the acquired current signal by 8.69 times to obtain the current value, arranges the voltage value through an array, and displays the waveform after filtering through a median filter. The data acquisition method is that the data receiving module configures the interface parameters through the serial port, reads the serial data in a loop and puts it in the data queue. The collected data is with an identification code. The identification code is added to the data frame header and the data frame tail. The middle is the required data returned. In order to ensure the correctness of the collected data, the instruction 01 03 03 01 00 64 15 A5 is sent to the PLC, and 100 groups of data will be returned. The frame header is 01 03 C8, and the frame tail is an ASCII code composed of 100 groups of numbers. The next group of instructions sent to the PLC is 01 03 03 65 00 64 54 7A, which will return the next group of 100 data. Each instruction corresponds to 100 groups of data, and so on. The frame header, frame tail and the total number of data characters returned are fixed. The frame header, frame tail and the total number of characters will be identified in the labview program. Only when all three blocks are met at the same time can the collected data be proved to be correct data and will it be collected into the program's array, eliminating the need for manual identification and manual input of instructions.
[0029] The system control module described above is used to control the pulse forming machine. The dll. file is used to encapsulate the input instructions that need to be given actions and the output instructions that need to be returned and displayed into a modular sub-vi. The encapsulated sub-vi is directly called for the input instructions and output instructions. By calling the dll. function, the connected address corresponds to the address of the lower computer PLC to realize the control of the lower computer. In the process of controlling the charging and discharging of the charger, the charging and discharging interval can be set to realize cyclic automatic charging and discharging.
[0030] The login module described above is used for customers, and is divided into administrators and operators. After a successful login, the administrator can choose to enter the operating system interface or the user management interface, while the operator can only log in to the operating system. When used in the database to store user information, the set user account and password must correspond, otherwise an error will be reported. If the number of errors exceeds 10 times in a row, the login system will be locked.
[0031] The user setting module described above is an interface that only administrators can enter. It is used to add, delete, modify and query user information of the system. It has an anti-accidental deletion function. When the administrator and operator delete all, a pop-up alarm will appear and the user cannot exit.
[0032] The parameter setting module described above uses a dll file. The data that needs to be added is added using the input sub-vi, and the data that needs to be displayed is added using the output sub-vi. There are 4 sub-vi modules under a main program, which are used to set the relevant parameters during system operation to ensure that the pulse forming machine can complete the material forming according to user requirements and communicate with the PLC by setting the corresponding serial port.
[0033] The data saving module described above is used to save the output results in the form of images or Excel tables to a custom location, and uses an Access database to connect with the customer database.
[0034] The above are only preferred embodiments of the present invention and do not limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A control and acquisition method for a pulse shaping machine based on LabVIEW, characterized in that The following steps are involved: (1) A Windows-based host computer is used, on which LabVIEW software, parameter setting module, system control module, data acquisition and analysis display module, and data storage module are installed; LabVIEW software is deployed on the Windows system and the program is operated; a slave computer is used, and the slave computer and the host computer are connected to each other through a serial port; the host computer and the control and acquisition system PLC of the pulse shaping machine are connected to each other through a serial port; (2) Inputting the pulse forming machine's forming parameters and working instructions according to the user's setting through the parameter setting module; (3) The system control module is used to control the pulse forming machine, send parameters and work instructions to the lower computer, complete the corresponding actions through the PLC, realize the cyclic automatic charging and discharging of the charger of the pulse forming machine, and feed back the action results and data to the acquisition and analysis display module; (4) At the same time, the data acquisition and analysis display module configures the interface parameters through the serial port, reads the serial data in a loop and puts it in the data queue. The LabVIEW program automatically identifies the correct data and collects the correct data into the program array. The output results are displayed on the host computer and saved in the data storage module.
2. The control and acquisition method of a pulse shaping machine based on LabVIEW according to claim 1 is characterized in that: In the step (1) described above, the host computer is also equipped with a user setting module, which communicates with the PLC by setting the corresponding serial port.
3. The control and acquisition method of a pulse shaping machine based on LabVIEW according to claim 2 is characterized in that: In the step (1), the host computer is also equipped with a login module, which has administrator and operator account and password settings; in the step (2), before entering parameters and work instructions, the operator password login is required.
4. A control and acquisition method for a pulse shaping machine based on LabVIEW according to claim 1, 2 or 3, characterized in that: The parameter setting module adopts dll. file, and the data to be added are added with input sub-vi, and the data to be displayed are added with output sub-vi.
5. The control and acquisition method of a pulse shaping machine based on LabVIEW according to claim 4 is characterized in that: There are 4 sub-VI modules under one main program, which are used to set the relevant parameters when the system is in operation to ensure that the pulse forming machine can complete the forming of the material according to user requirements, and communicate with the PLC by setting the corresponding serial port.
6. A control and acquisition method for a pulse shaping machine based on LabVIEW according to any one of claims 1-3 and 5, characterized in that: In the step (2), the dll. file is used to encapsulate the input instructions that require a given action and the output instructions that need to be returned for display into a modular sub-vi; in the step (3), the system control module directly calls the encapsulated modular sub-vi, and by calling the dll. function, the connected address corresponds to the address of the pulse forming machine PLC, thereby realizing the control of the pulse forming machine.
7. The control and acquisition method of a pulse shaping machine based on LabVIEW according to claim 6 is characterized in that: In the process of controlling the charging and discharging of the charger, the charging and discharging interval can be set, and the charging and discharging can be completed by controlling the switch unit through optical fiber signals, thereby realizing cyclic automatic charging and discharging.
8. A control and acquisition method for a pulse shaping machine based on LabVIEW according to any one of claims 1-3, 5, and 7, characterized in that: The data acquisition and analysis display module sends instructions and real-time collects the returned current and voltage signals through the configured acquisition card, converts the hexadecimal data of the voltage signal collected by the acquisition card into decimal data to obtain the voltage value, amplifies the collected current signal by 8.69 times to obtain the current value, arranges the voltage value through an array, and displays the waveform after filtering through a median filter.
9. The control and acquisition method of a pulse shaping machine based on LabVIEW according to claim 8 is characterized in that: The collected data is with identification code, and the identification code is added to the data frame header and the data frame tail. The middle is the required data to be returned. In order to ensure the correctness of the collected data, the instruction 01 03 03 01 0064 15 A5 is sent to the PLC, and 100 groups of data will be returned. The frame header is 01 03 C8, and the frame tail is an ASCII code composed of 100 groups of numbers. The next group of instructions sent to the PLC is 01 03 03 65 00 64 54 7A, and the next group of 100 data will be returned. Each instruction corresponds to 100 groups of data, and so on. The frame header, frame tail and the total number of data characters returned are fixed. The frame header, frame tail and the total number of characters will be identified in the labview program. Only when all three blocks are met at the same time can the collected data be proved to be correct data and will it be collected into the program's array, eliminating the need for manual identification and manual input of instructions.
10. The method for testing the thickness of a thin glass reduction layer according to claim 3, characterized in that: In the above step (1), after the administrator successfully logs in, he can choose to enter the operating system interface or the user management interface. In the user management interface, he can add, delete, modify, and check the user information of the system. There is a function to prevent accidental deletion. When the administrator and operator delete all the information, a pop-up window will be displayed and the administrator cannot exit. The administrator will enter the operating system interface and use the database to store user information. When the administrator enters the password, an error message will be displayed. If the number of error messages exceeds 10 times in a row, the login system will be locked; in the step (2), the operator logs in to the operating system interface and uses the database to store user information; when the operator enters the password, an error message will be displayed. If the number of error messages exceeds 10 times in a row, the login system will be locked; in the step (4), the data storage module is used to save the output results in the form of an image or Excel table to a custom location, and an Access database is used to connect to the customer database.