Virtual debugging method and device for production line sorting and packaging system

Through the virtual debugging method, NX software and PLCSIM Advanced software are used to perform three-dimensional modeling and signal mapping of the production line sorting and packaging system, which solves the equipment loss and high cost problems caused by traditional debugging, and improves production efficiency and equipment service life.

CN118519918BActive Publication Date: 2024-10-15DONGGUAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410987697.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-10-15
Estimated Expiration
2044-07-23

AI Technical Summary

Technical Problem

The debugging of traditional production line sorting and packaging systems results in equipment loss and high costs, making it difficult to effectively reduce equipment debugging costs and affecting production efficiency and product quality.

Method used

Adopting the virtual debugging method, create a three-dimensional model through NX software, use the electromechanical concept design module to configure physical attributes and simulation sequences, design the PLC control program and HMI monitoring screen, use PLCSIM Advanced software for signal mapping, and realize virtual debugging of the MCD model by the PLC program , to avoid actual operation of the equipment.

Benefits of technology

It realizes virtual debugging of the production line sorting and packaging system, reduces equipment loss and debugging costs, improves the production efficiency of the production line, and avoids losses in the actual operation of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118519918B_ABST
    Figure CN118519918B_ABST
Patent Text Reader

Abstract

The present invention provides a virtual debugging method and device for a production line sorting and packaging system, the method comprising: using NX software to create a three-dimensional model of a sorting station and a packaging station in an automated production line, and assembling the three-dimensional model; using the electromechanical concept design module of the NX software to configure physical properties, transmission properties, operation properties, electrical signals and create a simulation sequence for the assembled three-dimensional model, and construct an MCD simulation model; using TIA Portal software to design a PLC control program and an HMI monitoring screen for the MCD simulation model; using PLCSIM Advanced software to map the output and input signals of the PLC control program to the input and output signals of the MCD simulation model, respectively, to realize virtual debugging of the MCD simulation model based on the PLC control program and the HMI monitoring screen. The present invention realizes virtual debugging of a production line sorting and packaging system, has no equipment loss, and effectively reduces the equipment debugging cost.
Need to check novelty before this filing date? Find Prior Art

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 a production line sorting and packaging system. Background Art

[0002] The design and manufacturing technology requirements of traditional automated production lines are high, and the lack of technological research and development leads to high equipment costs. Automated production lines require strict control during the design, installation and use process to ensure the stability and reliability of operation. However, traditional manufacturing is difficult to meet the standards. Once a small error occurs, it may delay the interaction time of production line equipment.

[0003] Sorting and packaging are important links in automated production, which directly affect production efficiency and product quality. Therefore, before using the production line for manufacturing, the production line sorting and packaging system needs to be debugged so that engineers can predict potential problems and bottlenecks in advance. However, the debugging of the traditional production line sorting and packaging system will lead to equipment loss and high costs. Summary of the invention

[0004] The present invention provides a virtual debugging method and device for a production line sorting and packaging system, which are used to solve the defects in the prior art that production line debugging may cause equipment loss and high cost, and realize virtual debugging of the production line sorting and packaging system without equipment loss, thereby effectively reducing the equipment debugging cost.

[0005] The present invention provides a virtual debugging method for a production line sorting and packaging system, comprising:

[0006] Using NX software to create three-dimensional models of sorting stations and packaging stations in the automated production line, and assembling the three-dimensional models;

[0007] Using the electromechanical conceptual design module of the NX software to configure physical properties, transmission properties, operation properties, electrical signals and create simulation sequences for the assembled three-dimensional model, and to construct an MCD simulation model;

[0008] Design the PLC control program and HMI monitoring screen of the MCD simulation model using TIA Portal software;

[0009] The output and input signals of the PLC control program are mapped to the input and output signals of the MCD simulation model respectively by using PLCSIM Advanced software, so as to realize virtual debugging of the MCD simulation model based on the PLC control program and HMI monitoring screen.

[0010] The present invention also provides a virtual debugging device for a production line sorting and packaging system, comprising:

[0011] A modeling module, used to create three-dimensional models of sorting stations and packaging stations in an automated production line using NX software, and assemble the three-dimensional models;

[0012] A configuration module is used to configure physical properties, transmission properties, operation properties, electrical signals and create simulation sequences for the assembled three-dimensional model using the electromechanical concept design module of the NX software to construct an MCD simulation model;

[0013] A control module, used to design a PLC control program and an HMI monitoring screen for the MCD simulation model using TIA Portal software;

[0014] The debugging module is used to map the output and input signals of the PLC control program with the input and output signals of the MCD simulation model respectively using PLCSIM Advanced software, so as to realize virtual debugging of the MCD simulation model based on the PLC control program and HMI monitoring screen.

[0015] 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 production line sorting and packaging system as described above is implemented.

[0016] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the virtual debugging method of the production line sorting and packaging system as described in any one of the above is implemented.

[0017] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the virtual debugging method of the production line sorting and packaging system as described in any one of the above is implemented.

[0018] The virtual debugging method and device of the production line sorting and packaging system provided by the present invention perform three-dimensional modeling and assembly of the sorting station and packaging station of the automated production line in NX software, apply the electromechanical concept design module of NX software to set the key elements of the three-dimensional model, complete the actions of discharging, sorting, and packing, build a complete MCD simulation model, and design the PLC control program and HMI monitoring screen of the production process flow. Through PLCSIM Advanced, the PLC signal and the MCD signal are mapped to realize the virtual debugging of the PLC program for the motion control and status monitoring of the MCD model, without equipment loss, effectively reducing the equipment debugging cost and improving the production line generation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] 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.

[0020] Figure 1 It is a flow chart of a virtual debugging method of a production line sorting and packaging system provided by the present invention;

[0021] Figure 2 It is a structural schematic diagram of a bottled water production line in the virtual debugging method of a production line sorting and packaging system provided by the present invention;

[0022] Figure 3 It is a schematic diagram of the MCD configuration process in the virtual debugging method of the production line sorting and packaging system provided by the present invention;

[0023] Figure 4 It is a schematic diagram of modeling of a sorting station of an automated production line in a virtual debugging method of a production line sorting and packaging system provided by the present invention;

[0024] Figure 5 It is a schematic diagram of modeling of packaging stations of an automated production line in a virtual debugging method of a production line sorting and packaging system provided by the present invention;

[0025] Figure 6 It is a schematic diagram of the assembly process of an automated production line in the virtual debugging method of a production line sorting and packaging system provided by the present invention;

[0026] Figure 7 It is a schematic diagram of the general assembly of an automated production line in a virtual debugging method of a production line sorting and packaging system provided by the present invention;

[0027] Figure 8 It is a schematic flow chart of the bottled water discharging sequence in the virtual debugging method of the production line sorting and packaging system provided by the present invention;

[0028] Fig. 9 It is a schematic diagram of the cylinder sequence flow in the virtual debugging method of the production line sorting and packaging system provided by the present invention;

[0029] Fig.10 It is a schematic diagram of the lane divider sequence flow in the virtual debugging method of the production line sorting and packaging system provided by the present invention;

[0030] Fig.11 It is a schematic diagram of the automatic packing sequence flow in the virtual debugging method of the production line sorting and packaging system provided by the present invention;

[0031] Fig.12 It is a schematic diagram of the packaging conveyor belt sequence flow in the virtual debugging method of the production line sorting and packaging system provided by the present invention;

[0032] Fig.13 It is a logic diagram of a power control program in a virtual debugging method of a production line sorting and packaging system provided by the present invention;

[0033] Fig.14 It is a logic diagram of the main control program in the virtual debugging method of the production line sorting and packaging system provided by the present invention;

[0034] Fig.15 It is a logic diagram of the running state program in the virtual debugging method of the production line sorting and packaging system provided by the present invention;

[0035] Fig.16 It is a schematic diagram of the HMI monitoring interface in the virtual debugging method of the production line sorting and packaging system provided by the present invention;

[0036] Fig.17 It is a schematic diagram of a virtual debugging process based on NX MCD and PLC in the virtual debugging method of the production line sorting and packaging system provided by the present invention;

[0037] Fig.18 It is a schematic diagram of the timing sequence of the cylinder push rod position in the virtual debugging method of the production line sorting and packaging system provided by the present invention;

[0038] Fig.19 It is a schematic diagram of the timing sequence of the lane divider position in the virtual debugging method of the production line sorting and packaging system provided by the present invention;

[0039] Fig. 20 It is a schematic diagram of the Y-axis operation curve of the robot arm in the virtual debugging method of the production line sorting and packaging system provided by the present invention;

[0040] Fig.21 It is a schematic diagram of the Z-axis operation curve of the robot arm in the virtual debugging method of the production line sorting and packaging system provided by the present invention. DETAILED DESCRIPTION

[0041] 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.

[0042] Combine the following Figure 1A virtual debugging method of a production line sorting and packaging system of the present invention is described, comprising:

[0043] Step 101, using NX software to create a three-dimensional model of a sorting station and a packaging station in an automated production line, and assembling the three-dimensional model;

[0044] NX software is a software that integrates CAD (Computer Aided Design), CAM (Computer Aided Manufacturing) and CAE (Computer Aided Engineering), providing a powerful design and engineering platform for the industrial field, which can meet the complex product development needs of multiple industries. The assembly module of NX provides the tools needed to create and edit assemblies, allowing users to place and constrain components by dragging them, and use various constraint types to accurately control the relationship between components. The assembly module is a key function in NX software for managing complex assemblies and ensuring that parts fit correctly.

[0045] The automated production line includes multiple parts, such as Figure 2 As shown, a complete bottled water production line is generally composed of a bottle blowing station, a filling station, a sorting station, a packaging station, a palletizing station, and other stations. This embodiment mainly involves the sorting station and the packaging station. In order to more directly display the production process of bottled water, the construction of the production line will simplify the fineness of some modeling and reduce the CPU (Central Processing Unit) load of the simulation equipment, thereby further improving the simulation efficiency. The research object of this embodiment is the visual inspection process of the sorting station and the automatic boxing process of the packaging station, including the divider.

[0046] The 3D model of the bottled water automated production line created using NX software includes sorting stations and packaging stations, including but not limited to bottled water, conveyor belts, cylinders, lane dividers, two-axis truss robotic arms, visual sensors, and collection boxes.

[0047] Use the completed modeling to assemble the sorting and packaging stations of the bottled water production line.

[0048] Step 102, using the electromechanical conceptual design module of the NX software to configure physical properties, transmission properties, operation properties, electrical signals and create a simulation sequence for the assembled three-dimensional model, so as to construct an MCD (Mechanical Creation Design) simulation model;

[0049] The MCD module of NX is a new mechatronics conceptual design solution. It is a module based on conceptual design, designed to conduct conceptual feasibility design analysis of equipment. The MCD module provides a platform that can simulate various forms of motion and allows users to build models in NX and then simulate the entire motion process. This solution is not only suitable for a variety of manufacturing fields, but also can meet various needs in the design process, including management, electrical control and automated production design. The MCD module can be used to build 3D models with NX and perform simulation runs to improve product quality and speed up the R&D process.

[0050] The electromechanical conceptual design module of NX software is used to define the attribute configurations of basic electromechanical objects, kinematic pairs, adding sensors and actuators, as well as simulation sequences such as discharging, cylinders, and dividers, to complete actions such as discharging, sorting, and packing, and to build a complete MCD simulation model.

[0051] like Figure 3 As shown in the figure, the specific process of MCD configuration can be briefly summarized as creating a project, importing a model, physical property configuration, transmission property configuration, operation property configuration, electrical signal configuration, operation logic configuration, simulation sequence creation, and virtual debugging.

[0052] Step 103, using TIA Portal software to design a PLC control program and an HMI monitoring screen for the MCD simulation model;

[0053] PLC is a programmable logic controller, a digital computer specially used in the field of industrial control. It can perform logical operations on input signals and control outputs according to preset programs, thereby realizing the monitoring and control of various automation equipment and production processes. PLC has the characteristics of programmability, flexibility and stability. It is often used in factory automation production lines, mechanical equipment control, process control and other fields. It is an important part of modern industrial automation.

[0054] According to the control requirements of the automated production line, the designed PLC control program can be divided into multiple programs. According to the program function, it can be divided into four parts: power control, main control, operating status and data statistics.

[0055] The HMI (Human Machine Interface) monitoring screen can control the power supply of the automated production line, display the operating status of components, and test the correctness of the simulation by displaying production statistics.

[0056] Step 104 , using PLCSIM Advanced software to map the output and input signals of the PLC control program to the input and output signals of the MCD simulation model, respectively, to achieve virtual debugging of the MCD simulation model based on the PLC control program and the HMI monitoring screen.

[0057] PLCSIM Advanced software is used as a communication "bridge" to combine NX MCD and PLC to virtually debug the sorting and packaging system of the automated production line. The accuracy of the simulation system is verified through analysis of simulation results of the three production processes of sorting, lane separation, and boxing.

[0058] In this embodiment, the sorting station and packaging station of the automated production line are 3D modeled and assembled in NX software, and the electromechanical concept design module of NX software is used to set the key elements of the 3D model, complete the actions of unloading, sorting, and packing, build a complete MCD simulation model, and design the PLC control program and HMI monitoring screen of the production process. Through PLCSIM Advanced, the PLC signal and the MCD signal are mapped to realize the virtual debugging of the PLC program for the motion control and status monitoring of the MCD model, without equipment loss, effectively reducing the equipment debugging cost and improving the production line generation efficiency.

[0059] Based on the above embodiment, the three-dimensional model of the sorting station in this embodiment includes:

[0060] Produce items;

[0061] a sorting conveyor belt, configured to receive a first signal from a PLC controller and to transmit the production items according to the first signal;

[0062] a visual detector for detecting the quality of the production items conveyed on the sorting conveyor belt and transmitting a second signal to the PLC controller based on the quality;

[0063] A collection box, used to collect the production items that do not meet the quality standards;

[0064] A slideway for guiding the unqualified production items to the collection box;

[0065] a cylinder, for receiving the second signal, and, if the quality of the produced item is unqualified, pushing the produced item into the slideway according to the second signal;

[0066] A lane divider, used for planning the sorting conveyor belt into a plurality of lanes and performing a lane change operation according to a third signal of the PLC controller;

[0067] Fences and partitions are used to separate the production items in different lanes.

[0068] The 3D model of the sorting station is as follows Figure 4 As shown, the production items can be bottled water bottles or other items.

[0069] ①Modeling of a bottled water bottle. A bottled water bottle is assembled from two parts: the bottle body and the bottle cap. The width of the bottle body can be 69mm, and the height after assembly with the bottle cap can be 231.65mm.

[0070] ②Modeling of the sorting conveyor belt. The basic function of the sorting conveyor belt is to complete the bottled water bottle transmission responsible for the sorting system by receiving the signal of the PLC (Programmable Logic Controller) controller. It is mainly composed of belts, active rollers, driven rollers, servo motors, left and right side beams, brackets and support plate assemblies. The plane part of the belt assembly can be 1600mm long and 200mm wide. After the assembly of the bottled water production line is completed, the transmission surface is 500mm above the ground.

[0071] ③ is the modeling of the visual detector. The main function of the visual detection of the simulation system is to judge the quality of bottled water bottles and transmit the signal to the PLC controller. The visual detector is a key component for the function realization of the sorting station. The housing of the visual sensor can be 51mm long, 16mm wide and 19mm high.

[0072] ④ is the modeling of the cylinder, which is mainly composed of three parts: cylinder push rod, cylinder barrel and front end cover. The cylinder can receive the quality judgment signal of the bottled water bottle from the visual detector. The range of motion of the cylinder push rod is 0 to 78mm.

[0073] ⑤ is the modeling of the lane divider. The lane divider is mainly assembled by 2 entrance limit plates, 2 exit limit plates, sliders, sliding guides, brackets and other components. The lane divider mainly plans the sorting conveyor belt into two different lanes, and uses sensors combined with PLC control programs to determine the position of the exit limit plate that the bottled water bottle will pass through, so as to perform lane change operations. The lane divider has two ends, front and rear, of the entrance and exit. In order to avoid accidental jamming of the conveyor belt, the distance between the two entrance limit plates is set to be greater than the width of the bottled water bottle. The entrance width is 85mm and the exit width is 73mm.

[0074] ⑥ is the modeling of the collection box. The collection box is used to collect bottled water bottles of unqualified quality. The height can be 245mm, the length of the upper mouth can be 359mm, and the width can be 284mm.

[0075] ⑦ is the modeling of the slide. The main function of the slide is to guide the unqualified production items to the collection box for collection. The inner wall width of its outlet can be 155mm.

[0076] ⑧ Modeling of fences and partitions. Fences and partitions are mainly used to separate bottled water bottles, plan two different lanes, and combine with robotic arms to achieve 2×3 specifications of packaging.

[0077] Based on the above embodiments, Figure 5 As shown, the three-dimensional model of the packaging station in this embodiment includes:

[0078] An automatic cartoning machine, used for automatically packing the production items sorted by the sorting station;

[0079] A packaging box, the packaging box comprising an open state and a closed state;

[0080] A packaging conveyor belt is used to transport the packaging box and to link the automatic box packing machine to automatically pack the production items into the packaging box.

[0081] ① is the modeling of the automatic case packing machine. The automatic case packing machine is used to automatically pack the production items after they are sorted at the sorting station.

[0082] ②Modeling of the packaging conveyor belt. The basic structure of the packaging conveyor belt is roughly the same as that of the sorting conveyor belt. It is composed of belts, active rollers, driven rollers, servo motors, left and right side beams, brackets, support plates and other components. The main function is to transport packaging boxes and link the robotic arm to achieve automatic box loading.

[0083] ③ Modeling of the packaging box. The packaging box is divided into two states: "Package Box-Open" and "Package Box-Closed". If the hinge of the packaging box is open, it is "Package Box-Open", and if it is closed, it is "Package Box-Closed". The packaging box is mainly used in conjunction with a robotic arm to automatically pack bottled water and finally seal the box.

[0084] On the basis of the above embodiment, the automatic case packing machine in this embodiment is a two-axis truss mechanical arm, and the two-axis truss mechanical arm includes:

[0085] Bracket;

[0086] A transverse axis guide rail fixed on the bracket;

[0087] A vertical axis guide rail, slidably fixed on the horizontal axis guide rail;

[0088] A slider, slidably fixed on the vertical axis guide rail;

[0089] A suction cup is fixed on the sliding block.

[0090] The two-axis truss robot arm is mainly composed of a bracket, a horizontal axis guide rail, a vertical axis guide rail, a slider and a suction cup. The function of the automatic case packer is to automatically case the bottled water divided into 2×3 specifications by the divider by receiving the sensor detection signal. Its main moving axes are the Y axis (horizontal axis) and the Z axis (vertical axis). The movable range of the horizontal axis is 1340mm, with the center of the sorting conveyor as the initial position. The movable range of the vertical axis is 0~500mm, with the highest point of the suction cup as the initial position.

[0091] The specific assembly process of the automated production line is as follows: Figure 6 First, use the modeling module to create a new stretching block in the new assembly module as the floor, and its specifications can be 2500mm×2500mm×10mm to provide a reference for subsequent assembly constraints.

[0092] Then import the models of the two stations of sorting and packaging in sequence and make constraints, including:

[0093] The sorting conveyor belt is in contact with and fixed to the floor, with the left end aligned with the left side of the floor, and the left beam is 364.6mm away from the front of the floor; the bottled water bottle is placed in the middle of the left end of the sorting conveyor belt, with the bottom of the bottle 2mm away from the belt; the visual sensor is placed in the center on the front end of the cylinder, and the cylinder is fixed to the right beam of the sorting conveyor belt; the inlet of the divider is biased to the left end of the conveyor belt, and its bracket is aligned with the bottom surface of the side beam and placed in the center; the fence and partition are placed in the center close to the outlet of the limit plate of the divider, and its bracket is also aligned with the bottom surface of the side beam; the slideway and the cylinder Align left and right, and align up and down with the left beam of the conveyor belt; align the collection box with the center of the slide, and its upper mouth is on the same vertical plane as the outer edge of the slide; align the packaging conveyor belt with the sorting conveyor belt, and the distance between its left beam and the right beam of the sorting conveyor belt is 400mm; align the packaging box with the fence of the sorting conveyor belt, and place it in the middle of the right end of the packaging conveyor belt, 6.5mm away from the belt; align the robot arm bracket with the center of the two conveyor belts, and align its horizontal initial position with the center of the sorting conveyor belt partition. Complete the assembly of the bottled water automation production line, the general assembly is as follows Figure 7 The coordinated work of these components realizes the processes of material conveying, quality sorting, specification sorting, automatic box packing and sealing of generated items.

[0094] Based on the above embodiment, configuring the physical properties in this embodiment includes defining collision bodies, rigid bodies and adding object sources in the three-dimensional model;

[0095] Configuring the transmission properties includes configuring a fixed pair, a sliding pair, and a hinge pair;

[0096] Configuring the operation attributes includes configuring a collision sensor, a position control, a conveyor belt type, and a suction cup state;

[0097] Configuring electrical signals includes configuring signal control and transmission of the sorting station and signal control of the packaging station.

[0098] Configure physical properties, that is, define electromechanical objects and assign electromechanical properties to each component in the assembly model, such as defining a part as a rigid body and setting its physical properties (mass, friction, etc.). Specifically include:

[0099] (1) Define collision bodies. The parts that need to be defined as collision bodies include the conveying surface of the sorting conveyor belt, bottled water bottles, cylinder push rods, slides, dividers (including inlet limit plates, outlet limit plates, sliding guides, transmission slides), fences, partitions, packaging conveying surfaces, and packaging boxes (open and closed).

[0100] Regarding the definition of the collision body of the bottled water bottle, due to software reasons and simulation equipment performance issues, its collision shape is set to a cylinder with a height of 231.36mm and a diameter of 69mm.

[0101] During the simulation process, the bottled water bottle will shake unsteadily due to rigid body motion and collision during transmission. It is necessary to define the collision materials of the bottled water bottle and the conveyor belt: the dynamic friction coefficient of the bottled water bottle can be 0.2, the dynamic friction coefficient of the conveyor belt transmission surface can be 0.5, and other collision bodies can be default.

[0102] (2) Define rigid body. Rigid body parts mainly include bottled water bottles, cylinder barrels, cylinder push rods, dividers (including inlet limit plates, outlet limit plates, sliding guides, transmission sliders, bearings), robotic arms (including horizontal axes, transmission sliders, vertical axis guides, suction cups) and packaging boxes (open and closed).

[0103] (3) Add object sources. The bottle source is set to be triggered based on time, with an interval of 3s, no bias, and the initial active state is false. The box source, the object is box-closed, and is set to be triggered once each time it is activated.

[0104] Transmission property configuration is to define the motion relationship in the model, that is, to set the kinematic pairs and constraints: determine the motion relationship between the various components in the model, such as rotation pairs, sliding pairs, hinges, gears, hinges and other kinematic pairs, and set the corresponding motion constraints. Specifically include:

[0105] (1) Fixed pair: cylinder barrel, divider inlet limit plate, bearing and robot arm cross axis.

[0106] (2) Sliding pair: cylinder push rod, divider outlet limit plate, divider slider, robot arm slider and robot arm vertical axis.

[0107] (3) Hinge pair: the inlet limit plate and sliding guide of the divider, the sliding guide of the divider and the outlet divider.

[0108] Configuring operation properties means assigning actuators to the kinematic pairs in the model and setting various motion parameters of the model, including speed, acceleration, range of motion, etc. Specifically, it includes:

[0109] (1) The collision sensors mainly include: write sensor, read sensor, quality detection, collection box, material detection, lane detection, bottled water position, box sealing, box discharge detection, box position detection, bottled water bottle collection and box collection.

[0110] (2) Position controls include: cylinder position, divider position, lateral movement, and suction cup position.

[0111] (3) The conveyor belts include sorting conveyor belts and packaging conveyor belts.

[0112] (4) Other actuators: bottled water bottle quality marking form, bottled water bottle quality marking table, material inspection marking table, read-write devices including writing devices, reading devices and quality inspection, and color change of display changer.

[0113] (5) Configure the suction cup and add runtime behavior gripper.

[0114] The electrical signal configuration mainly defines the electrical control signals, including the logic and signal transmission of sensors and actuators. The signal adapters set up are mainly divided into three parts: "sorting station", "packaging station" and "other" signal adapters. Table 1 shows all the input signals configured by the three signal adapters.

[0115] Table 1 Signal Adapter

[0116]

[0117] The "sorting station" signal adapter is mainly responsible for the signal control and transmission of the sorting station. The applied parameter objects include the speed of the sorting conveyor (mm / s), the position of the lane divider (mm), the position of the cylinder (mm), and the trigger status of the sensors "material detection" and "lane detection". The assignment formula of some parameters and output signals of the sorting station is shown in Table 2.

[0118] Table 2 Some parameters and output signals of sorting stations

[0119]

[0120] The "packing station" signal adapter is mainly responsible for the signal control of the packing station, including the suction cup position (mm), lateral position (mm), bottled water position, and the two states of the gripper, suction cup state and release. The assignment formula of some parameters and output signals of the packing station is shown in Table 3.

[0121] Table 3 Some parameters and output signals of the packaging station

[0122]

[0123] Finally, there is the "other" signal adapter, whose main control objects include reading sensor status, bottled water bottle source status, packaging box collection status, packaging conveyor belt speed, and sorting conveyor belt speed. The assignment formulas of other parameters and output signals are shown in Table 4.

[0124] Table 4 Other parameters and output signals

[0125]

[0126] On the basis of the above-mentioned embodiment, the simulation sequence described in this embodiment includes a production item discharging sequence, a cylinder sequence, a lane divider sequence, an automatic box packing sequence and a packaging conveyor sequence.

[0127] The simulation sequence in NX MCD connects the various actions of the bottled water automation production line in an orderly manner through predefined signals and control logic to form a series of conditionally triggered steps. It combines PLC programming or state machines to achieve precise control of parameters such as speed and position to simulate and optimize the entire operation process of the production line.

[0128] Using the configured signals and actuators, we can create a simulation sequence for the bottled water automation production line by planning the simulation sequence and customizing the behavior. All sequences can only run when the "master switch" signal is true, and the production line stops working when the "master switch" is false.

[0129] The production item discharge sequence mainly realizes the simulation of the quality of the production items. The specific logical process is as follows Figure 8 As shown. The output of production items is controlled by the input signal "master switch". When the "master switch" is true, the production items are output. The output of production items triggers the write sensor, which marks the production items in a form, marking them as qualified and defective products in a ratio of 3:1. After marking, the read sensor is triggered. If the production item is marked as "unqualified", its color is changed through the display changer. The color is Blue with ID 211; if it is judged to be qualified, the color is Pale sky with ID 7.

[0130] The cylinder sequence is mainly used to sort bottled water bottles and consists of two sequences. The specific logic flow is as follows: Fig. 9As shown. When the production items are transmitted to the cylinder position through the sorting conveyor belt, the reading and writing equipment is first triggered to read the quality inspection results to determine whether the bottled water bottle mark is "qualified" or "unqualified". If it is judged to be unqualified, and the "material detection" of the cylinder's visual detector is triggered, and the cylinder is also in the initial position, the output signal "cylinder" will be changed to true, that is, the cylinder push rod will move forward at a speed of 250mm / s, that is, the Y axis will be pushed in the opposite direction to sort the unqualified bottled water bottles. When the cylinder push rod position is placed in the highest range of 180mm, the cylinder push rod will reset to the initial position at a speed of 250mm / s.

[0131] The channel splitter is also composed of two sequences. The specific logic flow is as follows: Fig.10 As shown. When the input signal "Lane Change" is true, the position of the limit plate at the exit of the lane divider is determined. If the position is the initial value of lane ①, it is changed to lane ②, that is, the value of "Lane Divider" is assigned to true, and at this time "Lane Divider_Position" = 78mm. Otherwise, it is changed to lane ①, that is, "Lane Divider" is false, and at this time "Lane Divider_Position" is equal to 0mm.

[0132] The automatic packing sequence is mainly composed of 10 groups of sequences, and the function realized is automatic packing. The specific process and logic are as follows Fig.11 As shown. The horizontal and vertical speeds of the robot are both 2000mm / s. When the value of the input signal "automatic boxing" is true, and the "bottled water position 2" sensor is triggered, the position of the robot arm is judged. If it is in the initial position, the suction cup position is assigned to false, and the robot moves the suction cup down 338.4mm. Then the grip state of the suction cup gripper is "true", the production item is grabbed, and then reset to the initial position. When the robot grabs the production item and resets, the "horizontal position" is assigned to true, and the robot moves 650mm in the Y-axis direction. After reaching 650mm, the robot moves the suction cup downward again, and after moving 338.4mm, the gripper attribute "release" of the suction cup is assigned to true. At this time, the bottled water is loaded into the packaging box, and the robot arm resets again, thus completing an automatic boxing.

[0133] The packaging conveyor belt sequence is mainly composed of three sequences. The specific logical process is as follows: Fig.12 As shown. When the robot arm completes the loading of the generated items, the conveyor belt is started with a transmission speed of 100mm / s. When both the "package box discharge detection" and the "package box position detection" are not triggered, the conveyor belt will be stopped. And from this, it is judged whether the initial position of the package box is active, that is, the "package box discharge sensor" is not triggered, and the package box source will be activated once to realize the package box discharge and prepare for the next packing. When the package box is transmitted to the "package box sealing" sensor position and triggered, it will be sealed from "package box-open" to "package box-closed".

[0134] Based on the above embodiment, the PLC control program described in this embodiment is used to:

[0135] Each time the visual detector detects the production item of qualified quality, the first counter and the second counter are both incremented by 1;

[0136] When the first counter is equal to n / 2, a lane change signal is output to control the lane divider to change lanes, n is the number of production items to be packed in each packaging box, and the first counter is cleared;

[0137] When the second counter is equal to n, an automatic packing signal is output to control the automatic packing machine to perform a packing operation and the second counter is cleared;

[0138] Total power control via button;

[0139] Detecting the simulation action of the MCD simulation model and obtaining the running state of the MCD simulation model;

[0140] The output data of the automated production line is collected.

[0141] The power program in the PLC control program realizes the total power control by pressing a button. The logic is as follows Fig.13 The initial value of the power counter is 0. By receiving the rising edge signal of the button, the power counter will increase by 1, and the main power will be turned on; when the count is greater than 1, the count is cleared and the main power is turned off.

[0142] The main control program in the PLC control program is mainly to output control signals to control the simulation of the MCD production line model, including three programs: lane divider detection, automatic packaging detection, and zeroing. The program logic is as follows: Fig.14 shown.

[0143] Among them, the function realized by the lane divider detection program is to output the signal "change lane" to control the lane divider of the production line to change lanes every time the number of generated items passing through the lane divider is 3.

[0144] The logic of the automatic packing detection program is that when the number of bottled water bottles passing through the divider is 6, the output signal "automatic packing" controls the robot arm of the production line to perform automatic packing operations.

[0145] The zeroing program mainly implements the counters of the lane divider detection program and the automatic box packing detection program. When the counter counts to the set value, it will be reset. In addition, the statistical data will be cleared through the "clear" button. In addition, when receiving the manual clear signal, the zeroing program can clear the data of the data statistics program.

[0146] The function of the running status program is to detect the simulated actions of each station of the MCD model of the production line and display the running status through the HMI, including four program segments: cylinder running status, divider path, robot arm status, and station running status. The design process is as follows Fig.15 shown.

[0147] Among them, when the cylinder operation status program detects that the cylinder is sorting defective products, the cylinder indicator light will light up, and will be turned off after 0.4s by detecting the cylinder push rod reset.

[0148] The lane divider path program mainly displays the lane where the lane divider is located through indicator lights, and there are lanes ② and ①, among which lane ② is the initial lane.

[0149] The robot status program displays the operating status of the robot through the indicator light. If the robot is performing automatic boxing operation, the indicator light will light up.

[0150] The station operation status program displays the operation status of the sorting station and the packaging station. When the sorting station is running, the "sorting operation" indicator light will flash at a frequency of 2.5Hz, and the indicator light of the packaging station will be always on when the packaging conveyor belt is running.

[0151] The data statistics program analyzes and compiles statistics on the production line's output data by inspecting production items, packaging boxes and other materials. It includes four program segments: total materials used for production items, statistics on the number of scraps, statistics on total output and calculation of scrap rate. The functions implemented are to detect and record the total number of bottled water outputs, detect and record the number of defective products in production items, detect and record the number of production items packed, and calculate the scrap rate.

[0152] Through the demand analysis of PLC control program design, the programming element number used can be determined. PLC distinguishes operating elements by number. The I / O allocation table is shown in Table 5, where I0.0 to I1.3 are the input signals of PLC, Q0.0 to Q0.2 are the output signals of PLC, M0.2 is the 2.5Hz clock pulse signal of PLC system, M2.0 to M2.7, M50.0, M50.1 and M100.0 are all intermediate variables of PLC.

[0153] Table 5 I / O allocation table

[0154]

[0155] DB is a data block used to store various data, allowing data to be shared between different program blocks, and can achieve protection and improve the modularity and structuring of the program. DB can be set to global or local, and global variables are variables accessible throughout the PLC project, which can simplify data exchange and status sharing. Table 6 shows the global variables stored in "Data Block_1 (DB6)".

[0156] Table 6 Global variables of DB block

[0157]

[0158] Based on the above embodiment, the content displayed in the HMI monitoring screen in this embodiment includes indicator lights for the operating status of each component in the three-dimensional model, a power switch and a control button for clearing data, as well as the production data of the automated production line.

[0159] like Fig.16 As shown, the main screen of the HMI monitoring screen can be divided into three parts according to its functions: operation indicator light, control buttons and production data display.

[0160] The operation indicator lights are composed of the main power supply, sorting station, packaging station, cylinder, lane ①, lane ② and automatic boxing, and the associated variables are "main switch", "sorting operation", "packaging operation", "cylinder operation", "lane ②", "lane ①" and "robot status". Only the lane ① and lane ② indicators are yellow when the associated signal is high, and the others are green.

[0161] The control buttons include power switch and data reset. The power switch button has two events: press and release. The associated variables are all "total power". The press event is set, and the release is reset. The data reset button also has two events: press and release. The associated variables are all "clear". The press event is set, and the release is reset.

[0162] The output data mainly displays "Total output / box", "Number of scraps / bottle", and "Scrap rate / (%)". The associated variables are "Data block_1_Total output", "Data block_1_Number of scraps", and "Scrap rate / (%)". The display style of "Scrap rate / (%)" is "99.9", and the others are "999".

[0163] On the basis of the above embodiment, the virtual debugging of the MCD simulation model in this embodiment includes:

[0164] Obtaining the change curves of the position of the cylinder push rod of the cylinder, the position of the lane divider and the position of the automatic packing robot arm over time;

[0165] The MCD simulation model is debugged according to the change curves of the position of the cylinder push rod, the position of the lane divider and the position of the mechanical arm over time.

[0166] The workflow of virtual commissioning based on NX MCD and PLC is as follows Fig.17 As shown. First, set the project block compilation to support simulation. Configure and connect the HMI device to the PLC device. Then compile and load the configuration. Start PLCSIMAdvanced, use PLCSIM mode, set and start the PLC, name it S7-1500, and the master IP address is 192.168.0.1. Compile the designed PLC control program and HMI screen, and load the PLC program to the virtual PLC controller S7-1500 after the compilation is completed.

[0167] Next is external signal configuration and signal mapping. Select S7-1500 for adding an instance, set the area to IO and update the tag, and confirm to import all variables. Select the type to be PLCSIMAdv, the instance to be S7-1500, select the corresponding signal and perform mapping, and map 14 pairs of signals in total.

[0168] After variable mapping is completed, virtual joint debugging can be performed. During this process, the real-time online status of the PLC and the HMI monitoring screen, as well as the MCD viewer, can be used to track variable values ​​in real time, observe program execution, and capture and record key operating data, so as to debug and optimize the system in detail.

[0169] For the visual sensor sorting function, the sorting station is equipped with advanced visual sensors, which can automatically identify the quality of the generated items and sort them. When the sensor detects defective products, the PLC controls the cylinder push rod to sort the defective products out of the normal process and push them to the slideway for collection in the collection box. The simulation operation curve of the cylinder push rod is shown in the figure below. Fig.18 As shown, it is consistent with the expectation and the error is within the allowable range.

[0170] The proportion of unqualified production items can be determined based on the number of unqualified production items determined by the visual sensor. When the proportion is greater than the first preset threshold, the visual sensor is debugged. When the proportion is less than or equal to the first preset threshold, the number of times the cylinder push rod is pushed out can be determined based on the simulation operation curve of the cylinder push rod. Compare whether the number of times the cylinder push rod is pushed out is consistent with the number of unqualified production items. If not, it means that the control of the cylinder push rod is wrong, and the cylinder push rod is debugged. If they are consistent, determine whether the number of unqualified production items collected in the collection box is consistent with the number of unqualified production items determined by the visual sensor. If not, determine whether the maximum distance of the cylinder push rod being pushed out is greater than the second preset threshold based on the simulation operation curve of the cylinder push rod. If not, debug the cylinder push rod; if they are greater than the second preset threshold, debug the relative position between the cylinder push rod, the slideway and the collection box.

[0171] For the automatic lane divider, the lane divider can intelligently plan the lanes according to the needs of the production line to ensure that the production items are orderly distributed to different channels according to the established specifications. This helps the subsequent automatic packaging work and improves the packaging efficiency and accuracy. The simulation operation curve of the lane divider is shown in the figure below. Fig.19 As shown, it is consistent with the expectation and the error is within the allowable range.

[0172] For the linkage between automatic packing and sealing, the robotic arm equipped at the packing station is linked with the automatic packing robot. The robotic arm can accurately grab and place the bottled water bottles into the box to complete the automatic packing of 2×3 specifications. After the packing is completed, the box moves to the sealing machine, which will automatically complete the sealing of the box to ensure the integrity and safety of the product packaging. Fig. 20 and Fig.21 Shown are the simulation operation curves of the Y-axis and Z-axis of the robot arm, which are consistent with expectations and the error is within the allowable range.

[0173] Figures 18 to 21 The simulation operation curve in the simulation can be exported from the operation data of NX MCD and then plotted using MATLAB. It can also be combined with MATLAB Simulink simulation and directly plotted in real time using the oscilloscope in it. The software used is Matrikon OPC Server for Simulation, which provides an OPC server, similar to PLCSIM Adv, as a communication platform between NX MCD and MATLAB Simulink.

[0174] 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 a production line sorting and packaging system, characterized in that: include: Using NX software to create three-dimensional models of sorting stations and packaging stations in the automated production line, and assembling the three-dimensional models; Using the electromechanical conceptual design module of the NX software to configure physical properties, transmission properties, operation properties, electrical signals and create simulation sequences for the assembled three-dimensional model, and to construct an MCD simulation model; Design the PLC control program and HMI monitoring screen of the MCD simulation model using TIA Portal software; Using PLCSIM Advanced software, the output and input signals of the PLC control program are mapped to the input and output signals of the MCD simulation model respectively, so as to realize virtual debugging of the MCD simulation model based on the PLC control program and the HMI monitoring screen; The three-dimensional model of the sorting station includes: Produce items; a sorting conveyor belt, configured to receive a first signal from a PLC controller and to transmit the production items according to the first signal; a visual detector for detecting the quality of the production items conveyed on the sorting conveyor belt and transmitting a second signal to the PLC controller based on the quality; A collection box, used to collect the production items that do not meet the quality standards; A slideway for guiding the unqualified production items to the collection box; a cylinder, for receiving the second signal, and, if the quality of the produced item is unqualified, pushing the produced item into the slideway according to the second signal; A lane divider, used for planning the sorting conveyor belt into a plurality of lanes and performing a lane change operation according to a third signal of the PLC controller; Fences and partitions for separating the production items in different lanes; determining a proportion of nonconforming production items based on the number of nonconforming production items determined by the vision sensor; When the ratio is greater than a first preset threshold, debugging the visual sensor; When the ratio is less than or equal to a first preset threshold, the number of times the cylinder push rod is pushed out is determined according to a simulation operation curve diagram of the cylinder push rod; Compare the number of times the cylinder push rod is pushed out with the number of unqualified production items. If they are not consistent, it means that the control of the cylinder push rod is wrong, and the cylinder push rod should be debugged; If they are consistent, determining whether the number of unqualified production items collected in the collection box is consistent with the number of unqualified production items determined by the visual sensor; If they are inconsistent, determining whether the maximum distances pushed out by the cylinder push rods are greater than a second preset threshold value according to the simulation operation curve diagram of the cylinder push rods; If they are not all greater than the second preset threshold, the cylinder push rod is debugged; If they are all greater than the second preset threshold, the relative positions among the cylinder push rod, the slideway and the collection box are adjusted.

2. The virtual debugging method of the production line sorting and packaging system according to claim 1, characterized in that: The three-dimensional model of the packaging station includes: An automatic cartoning machine, used for automatically packing the production items sorted by the sorting station; A packaging box, the packaging box comprising an open state and a closed state; A packaging conveyor belt is used to transport the packaging box and to link the automatic box packing machine to automatically pack the production items into the packaging box.

3. The virtual debugging method of the production line sorting and packaging system according to claim 2, characterized in that: The automatic case packing machine is a two-axis truss mechanical arm, and the two-axis truss mechanical arm includes: Bracket; A transverse axis guide rail fixed on the bracket; A vertical axis guide rail, slidably fixed on the horizontal axis guide rail; A slider, slidably fixed on the vertical axis guide rail; A suction cup is fixed on the sliding block.

4. The virtual debugging method of the production line sorting and packaging system according to claim 3 is characterized in that: Configuring the physical properties includes defining collision bodies, rigid bodies and adding object sources in the three-dimensional model; Configuring the transmission properties includes configuring a fixed pair, a sliding pair, and a hinge pair; Configuring the operation attributes includes configuring a collision sensor, a position control, a conveyor belt type, and a suction cup state; Configuring electrical signals includes configuring signal control and transmission of the sorting station and signal control of the packaging station.

5. The virtual debugging method of the production line sorting and packaging system according to claim 2, characterized in that: The simulation sequence includes a production item discharging sequence, a cylinder sequence, a lane divider sequence, an automatic box packing sequence and a packaging conveyor sequence.

6. The virtual debugging method of the production line sorting and packaging system according to claim 2, characterized in that: The PLC control program is used to: Each time the visual detector detects the production item of qualified quality, the first counter and the second counter are both incremented by 1; When the first counter is equal to n / 2, a lane change signal is output to control the lane divider to change lanes, n is the number of production items to be packed in each packaging box, and the first counter is cleared; When the second counter is equal to n, an automatic packing signal is output to control the automatic packing machine to perform a packing operation and the second counter is cleared; Total power control via button; Detecting the simulation action of the MCD simulation model and obtaining the running state of the MCD simulation model; The output data of the automated production line is collected.

7. The virtual debugging method of the production line sorting and packaging system according to claim 2, characterized in that: The contents displayed in the HMI monitoring screen include indicator lights for the operating status of each component in the three-dimensional model, a power switch and a control button for clearing data, as well as the output data of the automated production line.

8. The virtual debugging method of the production line sorting and packaging system according to claim 2, characterized in that: The virtual debugging of the MCD simulation model includes: Obtaining the change curves of the position of the cylinder push rod of the cylinder, the position of the lane divider and the position of the automatic packing robot arm over time; The MCD simulation model is debugged according to the change curves of the position of the cylinder push rod, the position of the lane divider and the position of the mechanical arm over time.

9. A virtual debugging device for a production line sorting and packaging system, characterized in that: A virtual debugging device for a production line sorting and packaging system according to any one of claims 1 to 8, comprising: A modeling module, used to create three-dimensional models of sorting stations and packaging stations in an automated production line using NX software, and assemble the three-dimensional models; A configuration module is used to configure physical properties, transmission properties, operation properties, electrical signals and create simulation sequences for the assembled three-dimensional model using the electromechanical concept design module of the NX software to construct an MCD simulation model; A control module, used to design a PLC control program and an HMI monitoring screen for the MCD simulation model using TIA Portal software; The debugging module is used to map the output and input signals of the PLC control program with the input and output signals of the MCD simulation model respectively using PLCSIM Advanced software, so as to realize virtual debugging of the MCD simulation model based on the PLC control program and HMI monitoring screen.