Virtual debugging method and device for lithium-ion battery packaging equipment
By establishing a three-dimensional model of lithium-ion battery packaging equipment on the MCD platform and combining TIA Portal and PLCSIM Advanced software, virtual debugging of PLC control programs and MCD simulation models is realized, and safety accidents and high costs are solved during the debugging process of lithium-ion battery packaging equipment. The problem of this paper improves production efficiency and safety and realizes the construction of digital factories.
Patent Information
- Application Number
- CN202411025807.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-30
AI Technical Summary
During the debugging process, lithium-ion battery packaging equipment is prone to safety accidents due to program writing defects or unskilled operation, and investing a lot of money to purchase physical machines for debugging has high cost and high risk.
Using virtual debugging methods, by establishing a three-dimensional model of lithium-ion battery packaging equipment on the MCD platform, defining its physical, motion and electromechanical properties, combined with TIA Portal and PLCSIM Advanced software, data exchange between PLC control program and MCD simulation model is realized. , perform virtual debugging and optimization.
It reduces debugging costs, improves production efficiency, reduces the risk of physical debugging, enhances safety, and realizes the construction of digital factory for lithium-ion battery packaging equipment.
Smart Images

Figure CN118550246B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of virtual debugging, and in particular to a virtual debugging method and device for lithium-ion battery packaging equipment. Background Art
[0002] In the production process of lithium-ion batteries, packaging technology is a key link to ensure battery performance and safety. Packaging not only involves the protection of the internal structure of the battery, but also includes preventing electrolyte leakage, isolating external moisture and oxygen, etc., in order to extend the battery life and improve its safety. The packaging method of lithium-ion batteries also has an important impact on their performance.
[0003] There are some problems in the production of lithium-ion batteries. When companies purchase lithium-ion battery packaging equipment, they usually need to invest a lot of money to purchase physical machines for debugging. However, during the debugging stage, the safety protection devices of the equipment may not be fully equipped, so during the initial debugging, the debugging personnel may fail to work properly due to program defects or unskilled operation, and even cause safety accidents. Summary of the invention
[0004] The present invention provides a virtual debugging method and device for lithium ion battery packaging equipment, which are used to solve the defect that the debugging of lithium ion battery packaging equipment in the prior art is prone to problems, and realize the virtual debugging of lithium ion battery packaging equipment.
[0005] The present invention provides a virtual debugging method for lithium-ion battery packaging equipment, comprising:
[0006] Establishing a three-dimensional model of a lithium-ion battery packaging device on an MCD platform, and defining physical properties, motion properties, electromechanical properties, and simulation sequence of the three-dimensional model;
[0007] In TIA Portal, the hardware configuration, global variables, input variables, output variables of the three-dimensional model are defined, and a PLC control program is designed to build an MCD simulation model;
[0008] PLCSIM Advanced software is used to map the input and output signals of the PLC control program with the output and input signals of the MCD simulation model respectively, so as to realize data exchange between the PLC control program and the MCD simulation model. The PLC control program controls the MCD simulation model for virtual debugging, and the MCD simulation model is optimized according to the virtual debugging results.
[0009] The present invention also provides a virtual debugging device for lithium-ion battery packaging equipment, comprising:
[0010] First, construct a model, which is used to establish a three-dimensional model of a lithium-ion battery packaging device on an MCD platform, and define the physical properties, motion properties, electromechanical properties and simulation sequence of the three-dimensional model to construct an MCD simulation model;
[0011] A second building block is used to define the hardware configuration, global variables, input variables, output variables and design a PLC control program of the three-dimensional model in the TIA Portal;
[0012] The virtual debugging module is used to use PLCSIM Advanced software to map the input and output signals of the PLC control program with the output and input signals of the MCD simulation model respectively, to realize data exchange between the PLC control program and the MCD simulation model, to control the MCD simulation model to perform virtual debugging by the PLC control program, and to optimize the MCD simulation model according to the virtual debugging results.
[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a virtual debugging method for a lithium-ion battery packaging device as described above is implemented.
[0014] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the virtual debugging method for a lithium-ion battery packaging device as described in any one of the above methods is implemented.
[0015] The virtual debugging method and device for lithium-ion battery packaging equipment provided by the present invention complete the design of the motion model of the lithium-ion battery packaging equipment in NX MCD, establish a simulation sequence controlled by signals on the basis of completing the configuration of each MCD attribute, so as to cooperate with the subsequent PLC program to control the model motion; perform hardware configuration and PLC control program writing in TIA Portal according to actual conditions; use PLCSIM Advanced as a bridge, establish communication between NX MCD and TIA Portal through signal configuration and mapping, realize data exchange, and perform motion simulation and virtual debugging on this basis to discover equipment operation defects, reduce debugging costs, and improve production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 This is one of the flow charts of the virtual debugging method of lithium-ion battery packaging equipment provided by the present invention;
[0018] Figure 2 It is a schematic diagram of the process of setting a three-dimensional model in the virtual debugging method of lithium-ion battery packaging equipment provided by the present invention;
[0019] Figure 3 It is a schematic diagram of placing a battery cell into an aluminum-plastic film in a virtual debugging method for lithium-ion battery packaging equipment provided by the present invention;
[0020] Figure 4 It is a schematic diagram of each area encapsulated in the virtual debugging method of lithium-ion battery encapsulation equipment provided by the present invention;
[0021] Figure 5 It is a schematic diagram of the subsequent process flow after the top sealing and side sealing are completed in the virtual debugging method of lithium ion battery packaging equipment provided by the present invention;
[0022] Figure 6 It is a schematic diagram of the second sealing process flow in the virtual debugging method of lithium ion battery packaging equipment provided by the present invention;
[0023] Figure 7 It is a schematic diagram of a three-dimensional model of a lithium-ion battery packaging device in a virtual debugging method for a lithium-ion battery packaging device provided by the present invention;
[0024] Figure 8 It is a schematic diagram of the operation flow of the lithium-ion battery packaging device in the virtual debugging method of the lithium-ion battery packaging device provided by the present invention;
[0025] Fig. 9 It is a schematic diagram of the PLC design process in the virtual debugging method of lithium-ion battery packaging equipment provided by the present invention;
[0026] Fig.10 It is a schematic diagram of the process of rotating the turntable in the virtual debugging method of lithium-ion battery packaging equipment provided by the present invention;
[0027] Fig.11 It is a schematic diagram of the process of folding the folding mechanism in the virtual debugging method of the lithium-ion battery packaging equipment provided by the present invention;
[0028] Fig.12 It is a schematic diagram of the process of supporting the cylinder in the virtual debugging method of the lithium-ion battery packaging equipment provided by the present invention;
[0029] Fig.13 It is a schematic diagram of the process of generating workpieces in the virtual debugging method of lithium-ion battery packaging equipment provided by the present invention;
[0030] Fig.14It is a schematic diagram of the working process of the top sealing mechanism in the virtual debugging method of the lithium ion battery packaging equipment provided by the present invention;
[0031] Fig.15 It is a schematic diagram of the working process of the side sealing mechanism in the virtual debugging method of the lithium ion battery packaging equipment provided by the present invention;
[0032] Fig.16 It is a schematic diagram of the working process of the unloading mechanism in the virtual debugging method of the lithium-ion battery packaging equipment provided by the present invention;
[0033] Fig.17 It is the main page of the HMI interface in the virtual debugging method of the lithium-ion battery packaging equipment provided by the present invention;
[0034] Fig.18 It is a data recording page of the HMI interface in the virtual debugging method of the lithium-ion battery packaging equipment provided by the present invention;
[0035] Fig.19 It is a system time setting page of the HMI interface in the virtual debugging method of the lithium-ion battery packaging equipment provided by the present invention;
[0036] Fig. 20 It is a schematic diagram of the communication principle between MCD and Portal in the virtual debugging method of lithium-ion battery packaging equipment provided by the present invention;
[0037] Fig.21 It is a schematic diagram of a position curve of a turntable in a cycle in a virtual debugging method for lithium-ion battery packaging equipment provided by the present invention;
[0038] Fig. 22 It is a schematic diagram of a speed curve of a turntable in one cycle in the virtual debugging method of lithium-ion battery packaging equipment provided by the present invention;
[0039] Fig.23 It is a schematic diagram of the position-time curve of the turntable after optimization in the virtual debugging method of the lithium-ion battery packaging equipment provided by the present invention;
[0040] Fig.24 It is a schematic diagram of the speed-time curve of the turntable after optimization in the virtual debugging method of the lithium-ion battery packaging equipment provided by the present invention;
[0041] Fig.25 It is a schematic diagram of the acceleration-time curve (seven-segment S-shaped flexible acceleration and deceleration control) of each rotation of the turntable in the virtual debugging method of the lithium-ion battery packaging equipment provided by the present invention;
[0042] Fig.26 It is a schematic diagram of the jerk-time curve of each rotation of the turntable in the virtual debugging method of lithium-ion battery packaging equipment provided by the present invention.
[0043] The following is Figure 7 The reference numerals shown are: folding mechanism 1 , workpiece 2 , control panel 3 , top sealing mechanism 4 , side sealing mechanism 5 , turntable 6 , unloading mechanism 7 . DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] Combine the following Figure 1 A virtual debugging method for lithium-ion battery packaging equipment of the present invention is described, comprising:
[0046] Step 101, establishing a three-dimensional model of a lithium-ion battery packaging device on an MCD (Mechatronics Concept Designer) platform, and defining physical properties, motion properties, electromechanical properties, and simulation sequence of the three-dimensional model to complete the construction of the MCD simulation model;
[0047] NX MCD can easily realize virtual process debugging without real equipment, only by building a 3D model of the equipment and matching external control signals, thereby shortening the equipment development cycle and reducing equipment costs.
[0048] This embodiment uses NX MCD and TIA Portal to perform motion simulation and virtual debugging on the digital model of soft-pack lithium battery packaging equipment. Providing solutions for the control process of soft-pack lithium battery packaging equipment in enterprises can effectively improve the efficiency of design, R&D and debugging, save costs and reduce the risk of physical debugging, which is conducive to the construction of digital factories.
[0049] Before building a model of lithium-ion battery packaging equipment, it is necessary to fully understand the composition of the lithium-ion battery packaging equipment and the work of each mechanism, that is, to analyze the three-dimensional model so that the physical properties, motion properties, electromechanical properties, simulation sequences, etc. can be correctly configured in the future, so as to simulate the motion behavior of the mechanical mechanism and assist in the control of the subsequent PLC (Programmable Logic Controller) program.
[0050] The three-dimensional model of the lithium battery packaging equipment is set according to its operation in the real environment. Figure 2The overall process of configuring the three-dimensional model is mainly divided into two steps: MCD attribute definition and simulation sequence configuration. Among them, the definition of MCD attributes can be divided into three aspects: the first is the physical attribute definition, including the definition of rigid bodies and collision bodies, which is used to simulate the actual physical properties of objects; the second is the motion attribute definition, including the definition of basic kinematic pairs and coupling pairs, etc., which is used to simulate the movable connection formed between the two components of the device; the third is the electromechanical attribute definition, including the creation of sensors, motion control, and input and output signals, which is used to facilitate the subsequent motion control of the three-dimensional model and the establishment of a basis for data exchange with the TIA Portal. Finally, a simulation sequence is established on the basis of the previous one to cooperate with the subsequent program control.
[0051] The definition of rigid body in the definition of physical properties can be explained by referring to two concepts in mechanical principles, namely parts and components. Parts are the smallest manufacturing units, and components are the smallest moving units. A component can be a part or multiple parts connected by rigidity. Therefore, components that are relatively stationary to each other must be set as the same rigid body at the same time. The purpose of setting a collision body is that two rigid bodies cannot interfere with each other in the real world, so the three-dimensional model cannot penetrate the mold. Setting a collision body where two rigid bodies may contact or collide can solve this problem.
[0052] In the definition of motion properties, the two components are the basic component and the connecting component, the basic component is the active component, and the connecting component is the driven component. In the three-dimensional model, corresponding kinematic pairs are added to the objects to realize the corresponding motion. There are many types of kinematic pairs, such as fixed pairs, sliding pairs, hinge pairs, etc. There are also coupling pairs, such as gear rack meshing, cams, etc. In this embodiment, a total of fixed pairs, sliding pairs, hinge pairs and gear rack coupling pairs are used. Most kinematic pairs establish a motion relationship between two components. It is worth mentioning that some fixed pairs in this embodiment are for subsequent control by setting a simulation sequence.
[0053] In the definition of electromechanical properties, the extension and retraction of the cylinder and the up and down movement of the head need to be set up with position control, and the rotation of the turntable needs to be set up with speed control. The use of collision sensors is mainly to detect whether a workpiece enters the workstation and trigger related actions. The above settings lay the foundation for the subsequent signal configuration and the establishment of simulation sequences.
[0054] Step 102, defining the hardware configuration, global variables, input variables, output variables of the three-dimensional model and designing the PLC control program in the TIA Portal;
[0055] This embodiment adopts the simulation debugging method based on NX MCD software, and performs PLC programming and HMI (Human Machine Interface) interface writing in TIA Portal. Establish a TIA Portal project, including PLC hardware configuration, global data definition, input and output variable definition, and PLC program design.
[0056] Step 103, using PLCSIM Advanced software to map the input and output signals of the PLC control program with the output and input signals of the MCD simulation model respectively, to achieve data exchange between the PLC control program and the MCD simulation model, and the PLC control program controls the MCD simulation model to perform virtual debugging, and optimizes the MCD simulation model according to the virtual debugging results.
[0057] The virtual PLC software S7-PLCSIM Advanced is used as an intermediate bridge to build data exchange between software, so that the simulation movement and virtual debugging of the MCD model can be controlled by the program without a real hardware PLC, and the simulation results can be optimized.
[0058] By using PLCSIM Advanced V3.0 as a bridge for signal transmission and the signal mapping function in MCD, the precise correspondence between PLC signals and MCD signals can be achieved. Subsequently, the control program of TIAPortal is downloaded into the virtual PLC software for verification and debugging, thus completing the virtual debugging of the lithium battery packaging equipment.
[0059] In this embodiment, the motion model of the lithium battery packaging equipment is designed in NX MCD, and a simulation sequence controlled by signals is established on the basis of completing the configuration of each MCD attribute to cooperate with the subsequent PLC program to control the model motion; hardware configuration and PLC control program writing are performed in TIA Portal according to actual conditions; PLCSIMAdvanced is used as a bridge to establish communication between NX MCD and TIA Portal through signal configuration and mapping to realize data exchange, and motion simulation and virtual debugging are performed on this basis to discover equipment operation defects, reduce debugging costs, and improve production efficiency.
[0060] On the basis of the above embodiment, the three-dimensional model in this embodiment includes the top sealing mechanism, the side sealing mechanism, the unloading mechanism, the rotating disk and the folding mechanism of the lithium-ion battery packaging equipment;
[0061] Wherein, the turntable rotates under the action of a power source provided by a motor;
[0062] The folding mechanism is installed on the rotating disk, and is used to fold the aluminum-plastic film that has been placed in the battery cell;
[0063] The top sealing mechanism is used to seal the top sealing area after the aluminum-plastic film on the turntable is folded;
[0064] The side sealing mechanism is used to seal the side sealing area after the aluminum-plastic film on the turntable is folded;
[0065] The unloading mechanism is used to take the aluminum-plastic film that has been sealed in the top sealing area and the side sealing area away from the rotating disk.
[0066] To conduct virtual debugging of soft-pack lithium battery packaging equipment, it is necessary to understand the packaging process of soft-pack lithium batteries. The first is the aluminum-plastic film forming process. When the shape design of the aluminum-plastic film is completed, it is necessary to use a special forming mold to punch out a pit that accurately fits the battery cell on the pre-heated aluminum-plastic film, so as to prepare for the subsequent placement of the wound or stacked battery cells. The next step is the top sealing and side sealing process, which is the first packaging process of soft-pack lithium batteries. The principle is: when packaging, the two heads have a certain temperature (generally around 180°C), and when they are closed, they are pressed on the aluminum-plastic film. The PP layer of the aluminum-plastic film melts and then bonds together to achieve packaging.
[0067] Before sealing the top and side, first put the battery cell into the punched hole, and then fold the aluminum-plastic film in half along the dotted line. Figure 3 shown. Figure 4 After the aluminum-plastic film is loaded into the battery cell, several locations need to be sealed, including the top sealing area, side sealing area, first sealing area and second sealing area. After the battery cell is placed in the pit, the entire aluminum-plastic film can be placed in the fixture and the top and side sealing are performed in the top and side sealing machine.
[0068] After the top and side seals of the battery cell are completed, only one opening of the right air bag is left, which is used for liquid injection. After the liquid injection is completed, the air bag side needs to be pre-sealed immediately, also known as sealing. Figure 5 As shown. After the package is completed, the battery cell is theoretically completely isolated from the external environment. The principle of the package is the same as the top and side seal. The next step is to let the battery cell stand still. Depending on the process, it can be divided into high-temperature standing and room-temperature standing. The purpose of standing still is to allow the injected electrolyte to fully infiltrate the electrode.
[0069] Then the battery cell can proceed to the next process of formation. Formation is the first charge of the battery cell, but it will not reach the highest voltage used, and the charging current is also very small. Formation is equivalent to the process of activating the battery cell. In this process, a certain amount of gas will be generated, so an air bag needs to be reserved in the aluminum-plastic film. Some factories use a clamp formation process, that is, the battery cell is clamped in a clamp and then put on the cabinet for formation, so that the generated gas will be fully squeezed into the air bag next to it.
[0070] Before the second seal, the air bag is first punctured by a guillotine and vacuumed at the same time, so that the gas in the air bag and a small part of the electrolyte are extracted. Then the second seal head is immediately sealed in the second seal area to ensure the airtightness of the battery cell. Finally, the air bag is cut off from the packaged lithium battery, and a soft-pack lithium battery is basically formed. Figure 6 Secondary sealing is the last process of lithium-ion battery packaging, and its principle is the same as the previous packaging.
[0071] The 3D model of lithium-ion battery packaging equipment is as follows Figure 7 Among them, in addition to the frame and the cover, the most important parts are the control panel 3, the top sealing mechanism 4, the two side sealing mechanisms 5, the unloading mechanism 7, the turntable 6 and the folding mechanism 1 thereon.
[0072] The turntable 6 can be in the shape of a regular hexagon, and the power source is provided by a motor, and it rotates clockwise (looking down). Six workstations can be set on the turntable 6, and each workstation corresponds to a folding mechanism 1. The power of the folding mechanism 1 is provided by a cylinder, and through the gear rack transmission, the linear motion of the cylinder is converted into the rotational motion of the gear shaft, and then the folding plate connected to the gear shaft is driven to flip the motion, so as to realize the folding action of the aluminum-plastic film, and at the same time, it also has the function of fixing the workpiece 2.
[0073] The top sealing mechanism 4 and the side sealing mechanism 5 are powered to heat the upper and lower heads, generally reaching about 180° C. When the upper and lower heads are closed, they are pressed on the aluminum-plastic film like a clamp, and the PP layer on the aluminum-plastic film will melt and bond together to achieve packaging.
[0074] The equipment can be provided with two side sealing mechanisms 5 because two aluminum-plastic films can be placed on each station at the same time to improve production efficiency. After the two aluminum-plastic films complete the top seal at the same time, one of them is first side sealed, and then the other is side sealed.
[0075] The unloading mechanism 7 is mainly composed of two direct-acting cylinders and a pair of suction cups. One is responsible for left and right movement, and the other is responsible for up and down movement. The suction cups generate negative pressure to suck up the products that have completed top sealing and side sealing, take away the products on the turntable, and realize unloading to prepare for the subsequent process.
[0076] On the basis of the above embodiment, the folding mechanism 1 in this embodiment is specifically used to detect whether the aluminum-plastic film and the battery cell are in place when the folding cylinder is extended and the supporting cylinder is extended. When the aluminum-plastic film and the battery cell are both in place, the folding cylinder is retracted to fold the aluminum-plastic film, and then the supporting cylinder is retracted;
[0077] The turntable is used to rotate when the supporting cylinder is retracted to move the aluminum-plastic film to the top sealing mechanism 4 for packaging; rotate again after the top sealing mechanism 4 completes packaging to move the aluminum-plastic film to the side sealing mechanism 5 for packaging; and continue to rotate after the side sealing mechanism 5 completes packaging to move the aluminum-plastic film to the unloading mechanism 7 for unloading.
[0078] Since the same signal has different input and output types in different occasions, take the signal that controls the support cylinder as an example. This signal corresponds to the Boolean variable that controls the support cylinder in the PLC program. For the PLC program, this variable is an output type, while for the MCD signal, it is an input signal. Similarly, some signals are input signals for the PLC program and output signals for the MCD. Therefore, two signal adapters are established as collections in the MCD, named input and output, to distinguish between input and output signals. For the configuration of the output signal, unlike the input signal, the output signal needs to set conditions.
[0079] according to Figure 8 The operation process of the lithium-ion battery packaging equipment is analyzed to obtain the required input and output signals. The input signal mainly receives the control instructions from the PLC program. The status information of the equipment components is obtained through the detection of speed sensors, position sensors, etc., which can be converted into Boolean output signals for further use, which can be used as the conditions of the simulation sequence or to transmit the equipment operation status information to the PLC. All input and output signal settings are detailed in Table 1 and Table 2.
[0080] Table 1 NX MCD output signals
[0081]
[0082] Table 2 NX MCD input signals
[0083]
[0084] The virtual simulation in this embodiment adopts a control method that mainly uses PLC program and supplemented by MCD simulation sequence. It is worth mentioning that how the workpiece generated by the object source is fixed on the turntable requires the prior configuration of a fixed pair. The basic component of the fixed pair is the turntable, and the connecting part is temporarily left empty, and then controlled by the simulation sequence, and triggered when the conditions are met. Before setting the conditions, a collision sensor needs to be set at the position where the workpiece is fixed. When the sensor is triggered, that is, the value is true, the connecting part will be set as the object in the trigger. The result is that when the workpiece contacts the collision sensor, the simulation sequence will be triggered and it will be fixed on the turntable through the fixed pair. The principle of setting the subsequent simulation sequence of the suction cup to suck up and release the workpiece is the same.
[0085] Based on the above embodiment, the global variables in this embodiment include the number of rotations of the turntable, the number of rotation cycles, the target position control and the number of workpiece processing completions;
[0086] The input variables include whether the workpiece is in place, a start button, a stop button, a reset button, whether the turntable is stopped, whether the supporting cylinder is in place, whether the unloading is completed, and whether the folding is completed;
[0087] The output variables include the working states of the supporting cylinder of the folding mechanism, the folding cylinder, the turntable, the top sealing mechanism, the side sealing mechanism and the unloading mechanism, and whether the target positions of the workpiece and the turntable are generated.
[0088] In TIA Portal, the PLC control program will be analyzed, written, and the HMI interface will be drawn. The PCL is first configured with hardware. In order to simulate the actual situation as much as possible, a total of 18 input variables, 14 output variables, and 16 intermediate variables can be set according to the PLC program. The economy of the actual hardware configuration is also considered. An input and output module and an input module are added to the PLC slot, with a total of 32 DC 24V input ports and 16 DC 24V output ports, so the requirements are met. Next is the definition of I / O variables and data blocks, which is convenient for the subsequent ladder diagram program, including the writing of subroutines, main functions, interrupt functions, etc. Finally, the HMI screen is established, variables are associated, and data such as the number of workpieces are dynamically displayed on the screen. The design process based on PLC is the focus of this design. The DB block used to store global variables and facilitate data management is shown in Table 3.
[0089] Table 3 Global variables of DB block
[0090]
[0091] Since the program requires a large number of timers and counters, adding them one by one will cause the DB blocks in the navigator on the left side of the project to be complicated and inconvenient to manage. The solution is to add two more DB blocks, named Timer and Counter respectively, and create multiple timers and counters at one time by creating arrays in each of them.
[0092] A PLC control program can have 18 input variables with operand identifier I, 14 output variables with operand identifier Q, and 16 intermediate variables with operand identifier M, as shown in Table 4. Pre-defined variables will help improve the efficiency of subsequent PLC programming.
[0093] Table 4 PLC input and output variables
[0094]
[0095] After analyzing the operation process of lithium-ion battery packaging equipment, the control program can be divided into 9 subprograms for writing separately, namely, controlling the rotation of the turntable, controlling the extension and retraction of the support cylinder, controlling the extension and retraction of the folding mechanism cylinder, controlling the top sealing mechanism, controlling the side sealing mechanism, controlling the side sealing mechanism, controlling the unloading mechanism, controlling the generation of workpieces and resetting subprograms. After writing all the subprograms, you only need to call them in the main program Main, and add an initialization program StartUp. When the PLC switches from the STOP state to the RUN state, it will be called once to initialize various variables and data. The 9 subprograms will be analyzed and written later. The PLC control program can be designed with reference to the processing flow of the workpiece, such as Fig. 9 shown.
[0096] Regarding the subroutine for controlling the rotation of the turntable, first of all, we need to understand the conditions for the turntable to rotate. The turntable can only rotate when the following conditions are met: first, the supporting cylinder is in the retracted state, second, the top sealing mechanism is in the non-working state, third, one side sealing mechanism is in the non-working state, fourth, the other side sealing mechanism is in the non-working state, fifth, the unloading mechanism is in the non-working state, sixth, a workpiece is generated and enters the workstation, and seventh, the folding mechanism completes the folding of the aluminum-plastic film. It can be seen that there are many conditions for the rotation of the turntable, and various factors need to be considered comprehensively. The process of turntable rotation is as follows: Fig.10 shown.
[0097] Here we need to distinguish between normally open contacts and normally closed contacts. Normally open contacts are disconnected when the value on the address is 0 and connected when it is 1. Normally closed contacts are connected when the address is 0 and disconnected when it is 1. Therefore, some conditions use normally open contacts, and some use normally closed contacts. The role of the timer here is to consider that the model movement takes a certain amount of time.
[0098] Since the rotation of the turntable is related to the start and stop of other mechanisms, the movement of the turntable is a clockwise rotation and stop state alternating with each other. For the turntable, its working process can be divided into rotation cycles, and each 6 rotations is a cycle. This is because there are 6 stations on the turntable, and the turntable will return to the starting position after 6 rotations. Therefore, the following functions can be controlled by the number of rotations of the turntable (by using a counter to record the number of rotations of the turntable):
[0099] First, in the unloading area, the cylinder of the folding mechanism 1 at the corresponding position on the turntable needs to be retracted so that the processed workpiece can be taken away by the suction cup.
[0100] Second, control that after the equipment is started, in the first rotation cycle of the turntable, the mechanisms that do not need to work temporarily do not move (because there are no workpieces in other stations before the first workpiece enters the station of the packaging equipment, so the mechanisms at the corresponding stations do not need to work), and in the subsequent rotation cycles, as long as the turntable stops, all stations need to work. That is, before the first workpiece completes the first cycle, when a workpiece arrives at the station, the corresponding mechanism will start working, and after the first workpiece completes the first cycle, when the subsequent workpiece arrives at a certain station, the corresponding working mechanism can use the turntable stop as a signal to trigger the mechanism at the corresponding station to start working.
[0101] Specifically, in the first cycle, the top sealing mechanism can start working only after the turntable rotates twice; one side sealing mechanism can start working only after it rotates three times; another side sealing mechanism can start working only after it rotates four times; and the unloading mechanism can start working only after it rotates five times. Afterwards, as long as the turntable stops, all mechanisms must work. The corresponding operations are shown in Table 5.
[0102] Table 5 The number of turntable rotations recorded by counter C0 and the corresponding execution operations
[0103]
[0104] Optionally, the number of workpieces processed is determined according to the number of rotation cycles of the turntable, the number of workpieces processed in each cycle and the number of rotations of the turntable.
[0105] The number of workpieces processed can be calculated by the number of rotations of the turntable. Before starting the analysis, it is necessary to number the 6 positions on the turntable for distinction, and there are 2 workpieces at each position. The numbering method is: in the initial state of the equipment, starting from the position where the support cylinder is located, the corresponding position on the turntable here is No. 1, and numbering clockwise from the top view, the top seal is No. 3; one side seal mechanism is No. 4; the other side seal mechanism is No. 5; the unloading mechanism is No. 6. Counter C0 will record the number of rotations of the turntable. When it reaches 6, its own count is reset and counter C2 will increase by 1, so C2 is used to count the number of rotation cycles of the turntable, and then the number of processed components can be calculated. Since only positions 1 and 6 enter the unloading area twice in the first cycle, 4 workpieces were produced in the first cycle. Starting from the second cycle, 12 workpieces are processed in each cycle. Considering that most of the time, the number of turntable rotation cycles recorded is not an integer, the number of non-integer parts needs to be counted, which is exactly the data recorded by counter C1 at this time, and it only needs to be added. Therefore, the final processing quantity formula is as follows:
[0106]
[0107] The folding mechanism cylinder can drive the folding plate to fold the aluminum-plastic film in half and fix the workpiece on the turntable at the same time. Before the cylinder drives the folding plate to move, there are two conditions: one is that the support cylinder needs to be in the extended state, and the other is that the workpiece has entered the workstation. So take the folding cylinder at position 1 as an example, and the other positions can be analogous. The process of folding the folding mechanism is as follows Fig.11 The corresponding execution operations when the workpieces at different positions are put into place are shown in Table 6.
[0108] Table 6 Workpiece 2 placement and corresponding execution operations at different positions of the counter
[0109]
[0110] The support cylinder will be executed once after the start button is pressed. The subsequent extension and retraction of the support cylinder is determined by whether the turntable stops as signal M0.0. That is, when the turntable stops, the support cylinder starts. Fig.12 It should be noted that the initial value of the intermediate variable M0.0 of the turntable stop is 1, so the contact is in the on state when the device starts.
[0111] In MCD, the object source command needs to be set to "activated once each" to facilitate the control of workpiece generation through the PLC program. Since the object source command will be executed once at the beginning of the simulation, the first workpiece generation does not need to be controlled by the PLC program, so a counter C4 is required. When C4 records that the turntable has rotated once, the workpiece generation is switched to be controlled by the PLC program. Therefore, an intermediate variable "OK" is used here, which will self-lock after the turntable rotates once, and its value is always 1. The condition for subsequent workpiece generation is "the support cylinder is extended into place." The workpiece generation process is as follows Fig.13 shown.
[0112] The control program of the top-sealing mechanism is relatively simple. From Table 5, we can see that when the counter C0 records the number of rotations of the turntable as 2, the M0.1 control is set, and the top-sealing mechanism is allowed to start. Its working trigger condition is that the turntable stops rotating. After the top-sealing mechanism works for a certain period of time (achieved by a timer), it will stop working. The working process of the top-sealing mechanism is as follows Fig.14 shown.
[0113] The control procedures of the two side sealing mechanisms are very similar to those of the top sealing mechanism. As shown in Table 5, when the counter C0 records the number of rotations of the turntable as 3 and 4, M0.2 and M0.3 are set respectively, and only then are the first side sealing mechanism and the second side sealing mechanism allowed to start, and the working trigger condition is also the turntable stops rotating. Similarly, it will stop working after working for a period of time. The working process of the side sealing mechanism is as follows Fig.15 shown.
[0114] The control program of the unloading mechanism has two main functions: one is to control the extension and retraction of the two cylinders of the unloading and to remove the workpiece processed on the turntable through the suction cup; the other is to return the folding mechanism cylinder to the corresponding position. Fig.16 shown.
[0115] First, the action of the cylinder of the folding mechanism of the unloading mechanism to return to the corresponding position is closely related to the number of rotations of the turntable, and needs to be analyzed together with the control program of the turntable.
[0116] Second, the realization of the telescopic function of the two cylinders that control unloading requires the joint control of the program and the simulation sequence in the MCD, that is, the PLC program is responsible for issuing unloading instructions, and the corresponding action execution is the responsibility of the simulation sequence.
[0117] There is no need to open any folding cylinders during the first four rotations of the turntable, because the first workpiece processed at this time will not enter the unloading area until the next step, that is, the fifth rotation of the turntable. Therefore, starting from the fifth rotation of the turntable, the cylinders of the folding mechanism need to be retracted each time.
[0118] There are a total of 6 folding cylinders on the turntable, so it is necessary to control the opening action of the corresponding folding cylinders entering the unloading area. A total of 2 counters are used. After the first counter C2 counts to 4, it loses its function and allows another counter C3 to start counting, see Table 7. When C3 counts to 1, the folding mechanism cylinder at position 1 is retracted; when the count is 2, the folding mechanism cylinder at position 6 is retracted; when the count is 3, the folding mechanism cylinder at position 5 is retracted; and so on, when the count is 6, the folding mechanism cylinder at position 2 is retracted. In this way, the retraction action of the folding mechanism cylinder entering the unloading area is controlled.
[0119] Table 7 The number of turntable rotations recorded by counter C3 and the corresponding execution operations
[0120]
[0121] The HMI interface can be displayed after the simulation is started, simulating the control panel on the actual processing equipment. First, add the HMI device, then draw the root screen. You can improve the efficiency of drawing subsequent sub-screens by drawing template screens. Add various elements to the screen as needed, such as text boxes, variables, buttons, etc. The functions implemented include the current time, start button, stop button, reset button, the number of currently processed workpieces, etc.
[0122] Interface design such as Figures 17 to 19 The main page is as shown. Fig.17 As shown in the figure, click the Set Time button and the Data Record button to enter the corresponding page, as shown in the figure Fig.18 and Fig.19As shown. The time setting page is used to change the system time. Enter the time to be changed in "Set time" and click OK to write the time into the system. The data recording page is used to count the current workpiece processing status, where the number of currently processed workpieces is associated with the corresponding PLC variables.
[0123] On the basis of the above embodiment, in this embodiment, the PLC control program controls the MCD simulation model to perform virtual debugging, including:
[0124] Obtaining a position curve and a speed curve of the turntable in each cycle;
[0125] The position curve and the speed curve are analyzed to determine whether the position curve and the speed curve meet expectations.
[0126] The communication between the two is established based on the established MCD model and the written PLC program. The communication principle is as follows Fig. 20 As shown. After the MCD internal signal is configured, complete the configuration of the external signal mapped with the MCD signal, that is, the variable of the PLC program. First, find the virtual PLC by searching the IP address in the Portal, and download the PLC program to the virtual PLC; enter NX MCD, and update the identified PLC I / O variables through the "External Signal Configuration" command. The identified I / O variables (external signals) will be mapped one by one with the MCD internal signals. In the "Signal Mapping" command, map the internal output signal of the MCD to the external input signal, and map the internal input signal to the external output signal. See Table 8 for details.
[0127] Table 8 Signal mapping between MCD and Portal
[0128]
[0129] After the above signal mapping, the data exchange between MCD and PLC program is realized, and the virtual simulation debugging of battery packaging equipment can be started. Click Go Online in the Portal to monitor the PLC program, I / O variables, global variables, etc., and click Play in MCD. Double-clicking the start button of the control panel model will change the value of the button to 1. The PLC will receive the signal and start controlling the MCD model, which will run according to the logic designed by the PLC program.
[0130] Observe the motion status of the model. If it is found to be inconsistent with the program logic, stop the simulation, analyze the possible reasons for the discrepancy with the expected motion status, eliminate them one by one, and continue debugging until the model's running process meets the expected running process.
[0131] The most important mechanism in this design is the turntable. The simulation results are analyzed with the help of its parameters during operation. Fig.21 and Fig. 22 As shown in the figure, combined with the curve, it can be seen that the turntable does run according to the logic of the PLC program design, that is, it rotates in a step-by-step manner. Specifically, it runs in increments of 60° / time and 360° as a cycle. The rotation speed of the turntable also runs alternately between 60° / s and 0 according to the setting. In general, the simulation results meet expectations, indicating that the previous work including MCD definition and PLC programming is reliable.
[0132] On the basis of the above embodiment, the optimization of the MCD simulation model according to the virtual debugging result in this embodiment includes:
[0133] The acceleration and jerk of the turntable are constrained to achieve flexible S-curve acceleration and deceleration control of the turntable.
[0134] In real equipment, the rotation of the turntable is driven by a motor, which has certain requirements for the acceleration and deceleration of the motor. This is to avoid rigid shock caused by sudden speed changes, which reduces the service life of the equipment. Rigid shock is caused by a sudden change in speed in a short period of time, which theoretically will produce infinite acceleration and thus generate a huge inertial force.
[0135] The previous content has completed the motion simulation and virtual debugging of the equipment, but from the results (the angular velocity during rotation remains a constant value of 60° / s from beginning to end, with mutations at the start and end; the acceleration is 0), it can be seen that the motion process of the turntable does not conform to the actual situation. The use of flexible S-curve acceleration and deceleration control can effectively solve the rigid impact phenomenon. By constraining the turntable position control with acceleration and jerk in MCD, a seven-segment flexible S-curve acceleration and deceleration control can be achieved (that is, in this order: acceleration with increasing acceleration, uniform acceleration, acceleration with decreasing acceleration, uniform speed, deceleration with increasing acceleration, uniform deceleration, and deceleration with decreasing acceleration). The specific constraint parameters can be: maximum acceleration and deceleration 100° / s², maximum jerk 400° / s³. The results obtained are more in line with reality, that is, the angular velocity of the turntable is gradual, which can avoid rigid impact. The optimization results are as follows: Figure 23 to Figure 26 shown.
[0136] This embodiment uses the signal mapping function and PLCSIM Advanced V3.0 as an intermediate bridge to realize the communication between NX MCD and TIA Portal, that is, the data exchange between MCD and PLC program. On this basis, the motion simulation and virtual debugging of the MCD model are carried out. In order to more realistically simulate the operation of the actual equipment, the seven-segment S-shaped flexible acceleration and deceleration control is adopted to avoid rigid impact and make the rotation of the turntable more realistic. The simulation results verify that this design is reliable.
[0137] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A virtual debugging method for lithium-ion battery packaging equipment, characterized in that: include: Establishing a three-dimensional model of a lithium-ion battery packaging device on an MCD platform, defining physical properties, motion properties, electromechanical properties and simulation sequence of the three-dimensional model, and constructing an MCD simulation model; Defining the hardware configuration, global variables, input variables, output variables of the three-dimensional model and designing a PLC control program in the TIA Portal; Using PLCSIM Advanced software, the input and output signals of the PLC control program are respectively mapped to the output and input signals of the MCD simulation model to realize data exchange between the PLC control program and the MCD simulation model, the PLC control program controls the MCD simulation model to perform virtual debugging, and the MCD simulation model is optimized according to the virtual debugging results; The three-dimensional model includes a top sealing mechanism, a side sealing mechanism, a discharge mechanism, a turntable and a folding mechanism of the lithium-ion battery packaging equipment; Wherein, the turntable rotates under the action of a power source provided by a motor; The folding mechanism is installed on the rotating disk, and is used to fold the aluminum-plastic film that has been placed in the battery cell; The top sealing mechanism is used to seal the top sealing area after the aluminum-plastic film on the turntable is folded; The side sealing mechanism is used to seal the side sealing area after the aluminum-plastic film on the turntable is folded; The unloading mechanism is used to take the aluminum-plastic film that has been sealed in the top sealing area and the side sealing area away from the rotating disk; The side sealing mechanism comprises a first side sealing mechanism and a second side sealing mechanism; The global variables include the number of rotations of the turntable, the number of rotation cycles, the target position control and the number of workpiece processing completions; The output variables include the working states of the supporting cylinder of the folding mechanism, the folding cylinder, the turntable, the top sealing mechanism, the side sealing mechanism and the unloading mechanism, and whether the target positions of the workpiece and the turntable are generated; The input variables include whether the workpiece is in place, a start button, a stop button, a reset button, whether the turntable is stopped, whether the supporting cylinder is in place, whether the unloading is completed, and whether the folding is completed; The number of workpieces processed is determined according to the number of rotation cycles of the turntable, the number of workpieces processed in each cycle and the number of rotations of the turntable; The PLC control program controls the MCD simulation model to perform virtual debugging, including: Obtaining a position curve and a speed curve of the turntable in each cycle; Analyze the position curve and the speed curve to determine whether the position curve and the speed curve meet expectations; The optimizing the MCD simulation model according to the virtual debugging result includes: The acceleration and jerk of the turntable are constrained to achieve flexible S-curve acceleration and deceleration control of the turntable.
2. The virtual debugging method for lithium-ion battery packaging equipment according to claim 1, characterized in that: The folding mechanism is specifically used to detect whether the aluminum-plastic film and the battery cell are in place when the folding cylinder is extended and the supporting cylinder is extended. When both the aluminum-plastic film and the battery cell are in place, the folding cylinder is retracted to fold the aluminum-plastic film, and then the supporting cylinder is retracted; The turntable is used to rotate when the supporting cylinder is retracted so as to move the aluminum-plastic film to the top sealing mechanism for packaging; rotate again after the top sealing mechanism completes packaging so as to move the aluminum-plastic film to the side sealing mechanism for packaging; and continue to rotate after the side sealing mechanism completes packaging so as to move the aluminum-plastic film to the unloading mechanism for unloading.
3. A virtual debugging device for lithium-ion battery packaging equipment, characterized in that: The virtual debugging method for lithium-ion battery packaging equipment according to any one of claims 1 to 2 comprises: First, construct a model for building a three-dimensional model of a lithium-ion battery packaging device on an MCD platform, and define the physical properties, motion properties, electromechanical properties and simulation sequence of the three-dimensional model; The second construction module is used to define the hardware configuration, global variables, input variables, output variables and design PLC control program of the three-dimensional model in TIA Portal to build an MCD simulation model; The virtual debugging module is used to use PLCSIM Advanced software to map the input and output signals of the PLC control program with the output and input signals of the MCD simulation model respectively, to realize data exchange between the PLC control program and the MCD simulation model, to control the MCD simulation model to perform virtual debugging by the PLC control program, and to optimize the MCD simulation model according to the virtual debugging results.
4. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the virtual debugging method for lithium-ion battery packaging equipment according to any one of claims 1 to 2 is implemented.
5. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the virtual debugging method for lithium-ion battery packaging equipment according to any one of claims 1 to 2 is implemented.
Citation Information
Cited By
Control method of rotary table of injection molding machine
CN121133053A
