Graphics import programming method and system for slotting machine
By importing graphic files and automatically calculating the slot position and judging the slot surface, the slotting program is generated, which solves the problems of complex and inefficient programming of traditional slotting machines, and improves programming efficiency and safety.
Patent Information
- Application Number
- CN202110353159.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-31
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2041-03-31
AI Technical Summary
The traditional groove machine programming method is complex and the programming efficiency is inefficient. The system needs to wait for the tool holder movement to stop before writing the next program, which increases safety hazards and programming time.
By importing the graphics file, extracting the coordinates of feature points on the pattern, calculating the slot position on the flat panel, and determining whether the slot is on the front or back, an automated slotting procedure is generated.
It improves programming efficiency, reduces programming time, reduces safety risks, and realizes the function of automatically generating slotted programs after drawing files are imported.
Smart Images

Figure CN113064592B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of mechanical processing, and in particular to a method and system for graphics import programming of a slotting machine. Background Art
[0002] With the continuous development of society, the requirements for commercial aesthetics are getting higher and higher. In the sheet metal processing industry, the slotting machine can use special tools to cut V-shaped grooves at the bending lines of stainless steel sheets, aluminum sheets and other metal materials that need to be bent, so that the sheet is easy to bend and the outer R angle of the bending angle can be minimized, and then the bending machine or manual bending is used to achieve a beautiful effect. It can be widely used in hotels, shopping malls, supermarkets, office buildings, KTV and other places.
[0003] The traditional slotting machine programming method is complicated and requires setting multiple different processes at the same time, or forcing multiple different program contents into the same process. In actual scenarios, customers need to frequently check whether the program is written correctly and whether there are any omissions in the slot position. In addition, placing multiple processes together requires more time to check the program, which reduces programming efficiency.
[0004] Due to the limitations of the traditional horizontal slotting machine mechanism, the system needs to move with the tool holder. Therefore, the slotting machine needs to wait for the previous process to stop completely before writing the next program. Otherwise, writing the program while moving is likely to cause personal injury. The problem caused by this is that the system programming efficiency is low and it takes a long time. Summary of the invention
[0005] In order to solve at least one technical problem of the prior art, the present disclosure provides a method for automatically programming after importing graphics into a slotting machine, comprising the following steps:
[0006] S1: Import a picture file, which contains a pattern;
[0007] S2: extract the coordinates of each feature point on the pattern;
[0008] S3: Calculate all slot positions on the plane plate according to the coordinates of each feature point and determine whether each slot is opened on the front side or the back side of the plane plate, and save the slot positions according to the front side and the back side;
[0009] S4: Classify the front and back sides and generate a slotting program according to the slotting position on the flat plate.
[0010] The beneficial effect of this embodiment is that the slotting program can be directly generated after the drawing file is imported, thereby improving programming efficiency.
[0011] In some embodiments, the feature points include a starting point, an end point, and an intersection point of a line segment of a pattern.
[0012] In some embodiments, the method for obtaining the groove position on the planar plate is as follows:
[0013] Calculate the vectors formed by the adjacent feature points excluding the end point, and solve the modulus of each vector respectively;
[0014] The modulus of each vector is accumulated and summed to obtain the slot positions on the plane plate;
[0015] The direction of the vector is from the feature point in the front order to the feature point in the back order.
[0016] This implementation can calculate the position of the groove corresponding to each characteristic point on the plane plate.
[0017] In some embodiments, the method for determining whether the groove is opened on the front side or the back side of the planar plate is as follows:
[0018] Calculate the previous feature point (x i-1 ,y i-1 ) and the current feature point (x i ,y i ) constitutes a vector a=(x i -x i-1 ,y i -y i-1 ), the previous feature point (x i-1 ,y i-1 ) and the next feature point (x i+1 ,y i+1 ) is the vector b=(x i+1 -x i-1 ,y i+1 -y i-1 );
[0019] Judgment (x i -x i-1 )(y i+1 -y i-1 )-(y i -y i-1 )(x i+1 -x i-1 ) is greater than 0. If so, the slot position corresponding to the current feature point in the plane plate is filled in the first register belonging to the front side. If less than 0, the slot position corresponding to the current feature point in the plane plate is filled in the second register belonging to the back side.
[0020] This embodiment can determine whether each groove is opened on the front side or the back side of the plate.
[0021] In some implementations, the drawing file is in a DXF format.
[0022] According to another aspect of the present disclosure, a slotting machine graphics import programming system is provided, comprising:
[0023] An import module, used for importing a drawing file containing a pattern and extracting the coordinates of all feature points on the pattern;
[0024] A calculation module, used for calculating the vector, vector modulus and vector outer product formed between the feature points;
[0025] A judgment module, used to judge whether the groove corresponding to the characteristic point is opened on the front side or the back side of the plane plate;
[0026] a storage module, comprising a first register and a second register, for storing the slot positions of the slots opened on the front side of the planar plate and the slot positions of the slots opened on the back side of the planar plate respectively; and
[0027] A program generation module is used to generate a slotting program.
[0028] In some implementations, a display module is further included, and the display module is used to display the register table.
[0029] In some embodiments, the display module is also used to display a pattern of a graphic document.
[0030] In some implementations, a command control is also displayed on the display module. After the command control is clicked, the calculation module, the judgment module and the program generation module work in sequence.
[0031] In some embodiments, the pattern is displayed next to the register table, the column content of the register table shows the slot location and the surface where the slot is located, the rows of the register table correspond to the line segments of the pattern, and when the row of the table is clicked, the corresponding line segment on the pattern will be highlighted. This embodiment can facilitate user viewing and inspection. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of a pattern in a drawing file is shown schematically.
[0033] Figure 2 The present invention is a flowchart of a method for programming a slotting machine graphics import according to an embodiment of the present invention.
[0034] Figure 3 The present invention is an architectural diagram of a slotting machine graphics import programming system according to an embodiment of the present invention.
[0035] Figure 4 This is an architecture diagram of a slotting machine graphics import programming system according to another embodiment of the present disclosure.
[0036] Explanation of symbols:
[0037] Q1-Q4, characteristic points
[0038] S1-S4, steps
[0039] 1. Import module
[0040] 2. Computing module
[0041] 3. Judgment module
[0042] 4. Storage module
[0043] 5. Program generation module
[0044] 6. Display module DETAILED DESCRIPTION
[0045] Figure 2 The flowchart of the method for programming the slotting machine graphics import according to an embodiment of the present disclosure is schematically shown. Figure 2 The slotting machine graphics import programming method includes steps S1-S4.
[0046] S1: Import a drawing file, which contains a bending pattern.
[0047] Figure 1 The pattern in the drawing file of an embodiment is schematically shown. Please refer to Figure 1 , the pattern can be drawn by drawing software such as CAD, which is composed of multiple line segments connected in sequence, representing the cross-section of the bent part. The format of the drawing file can be DXF. The intersection of the line segments is the bending point, which corresponds to the position where the flat plate needs to be grooved. Depending on the bending direction, it is necessary to selectively groove the front and back of the plate.
[0048] S2: Get the coordinates of each feature point on the pattern.
[0049] The feature points include the starting point, bending points and end point of the pattern. Specifically, there are n feature points, of which the first feature point and the nth feature point are equivalent to the two edges of the plate, and the second to n-1th feature points represent the bending points, that is, corresponding to the slot positions on the plane plate. The coordinates of the n feature points are (x1, y1), (x2, y2), ..., (x n-1 ,y n-1 ) and (x n ,y n ), where n≥3. For example, in Figure 1 In the pattern shown, the characteristic points include points O1 to O4, where point O1 corresponds to one edge of the plate, point O4 corresponds to the other edge of the plate, and points O2 and O3 represent bending points, which correspond to the slot positions on the plane plate.
[0050] Generally speaking, when drawing a pattern, the order of the feature points is also saved in the drawing file by the drawing software. When the slotting machine system reads the drawing file, it can identify the order of the feature points. The feature points disclosed in the present invention are sorted according to the drawing order, that is, the starting point of the pattern is taken as the first feature point, and the intersection points of the line segments drawn later are respectively taken as the second to n-1 feature points, and the end point of the pattern is the nth feature point. For example, the embodiment of the present disclosure takes the feature point O1 as the first feature point, and then the feature points O2~O4 are the second to fourth feature points respectively.
[0051] S3: Calculate all slot positions on the plane plate according to the coordinates of each feature point and determine whether each slot is opened on the front side or the back side of the plane plate, and save the slot positions separately according to the front side and the back side.
[0052] The slot position on a flat plate is expressed as the distance from the slot to the edge of the plate. The method for obtaining the slot position on a flat plate is as follows:
[0053] Calculate the vectors formed by the adjacent feature points excluding the last feature point (i.e., the end point), and solve the modulus of each vector respectively;
[0054] The modulus of each vector is accumulated and summed to obtain the slot positions on the plane plate;
[0055] The direction of the vector is from the feature point in the front order to the feature point in the back order.
[0056] Specifically, the method for grooving the flat plate is as follows:
[0057] (1) First, calculate the vectors between adjacent feature points, which are:
[0058] (x2-x1, y2-y1),
[0059] (x3-x2, y3-y2),
[0060] …
[0061] (x n -x n-1 ,y n -y n-1 );
[0062] (2) Calculate the moduli of the first n-1 vectors:
[0063]
[0064] (3) The cumulative sum of the moduli of these vectors is:
[0065]
[0066] After cumulative summation, the slotting position of each slot on the plane plate is obtained.
[0067] When a flat plate is bent two or more times and needs to be bent toward the front and back of the flat plate, it is necessary to determine whether the groove is opened on the front or back of the flat plate. The method for determining whether the groove is opened on the front or back of the flat plate is as follows:
[0068] Calculate the previous feature point (x i-1 ,y i-1 ) and the current feature point (x i ,y i ) is a vector a=(x i -x i-1 ,y i -y i-1 ), the previous feature point (x i-1 ,y i-1 ) and the next feature point (x i+1 ,y i+1 ) is the vector b=(x i+1 -x i-1 ,y i+1 -y i-1 );
[0069] Judgment (x i -x i-1 )(y i+1 -y i-1 )-(y i -y i-1 )(x i+1 -x i-1 ) is greater than 0. If so, the slot position corresponding to the current feature point in the plane plate is filled in the first register belonging to the front side. If less than 0, the slot position corresponding to the current feature point in the plane plate is filled in the second register belonging to the back side.
[0070] The outer product of vectors a and b is a×b=[(x i -x i-1 )(y i+1 -y i-1 )-(y i -y i-1 )(x i+1 -x i-1 )]k, where k is the unit vector in the z-axis direction. i -x i-1 )(y i+1 -y i-1 )-(y i -y i-1 )(x i+1 -x i-1)>0, it indicates that the next feature point is located on the left side of vector a, which means that the plate is bent toward the front at the current feature point; if (x i -x i-1 )(y i+1 -y i-1 )-(y i -y i-1 )(x i+1 -x i-1 )<0, it means that the next feature point is located on the right side of vector a, which means that the plate is bent to the back at the current feature point. Based on this, it can be judged whether the groove is opened on the front or back of the plate. The groove position of the bending point shown in the pattern on the plane plate is classified into two registers according to the front or back for later use.
[0071] S4: Classify according to the front and back sides, and generate the slotting program according to the slotting position and the front and back directions.
[0072] In the processing machine, the code generation based on the parameters belongs to the prior art and will not be expanded here. During automatic programming, the slotting positions are called from two registers and programmed into the slotting program. All the information in one register is called first, and then all the information in the other register is called, so that when the slotting machine executes the slotting program, one surface of the flat plate is slotted first, and then the other surface is slotted.
[0073] The drawing is imported into the slotting machine system. Through the operation of the slotting machine system, the user can click the program generation menu on the slotting machine controller screen to issue a command to generate a slotting program. The slotting machine controller automatically writes the slotting positions on the plane plate corresponding to the characteristic points in the pattern into two temporary registers according to the front slotting and the back slotting, and then calls the information from the register to generate the slotting program during automatic programming. The present invention solves the problem of automatic programming by drawing and improves programming efficiency.
[0074] Please refer to Figure 3 The present disclosure also provides a slotting machine graphics import programming system, which includes an import module 1, a calculation module 2, a judgment module 3, a storage module 4 and a program generation module 5.
[0075] The user can connect the computer to the slotting machine controller via a network cable or wireless (such as WiFi or Bluetooth), upload and save the drawing to the slotting machine controller. When the previous process is completed, the user directly calls the drawing saved on the controller and generates the slotting program with one click through the visual operation interface, eliminating the intermediate programming link.
[0076] The import module 1 is used to import a drawing file containing a pattern stored in the controller and extract the coordinates of all feature points on the pattern.
[0077] The calculation module 2 is used to calculate the vector, vector modulus and vector outer product formed by the feature points. Specifically, the calculation module 2 calculates the vectors formed by adjacent feature points in sequence; the calculation module 2 also calculates the modulus of other vectors except the last vector, accumulates and sums the obtained vector moduli, and obtains all the slot positions on the plane plate corresponding to the feature points.
[0078] The judgment module 3 is used to judge whether the groove corresponding to the characteristic point is opened on the front side or the back side of the flat plate.
[0079] The storage module 4 comprises a first register and a second register, which are used to store the slot positions of the slots opened on the front side of the planar plate and the slot positions of the slots opened on the back side of the planar plate, respectively.
[0080] The program generation module 5 is used to generate a slotting program.
[0081] Please refer to Figure 4 The slotting machine graphic import programming system also includes a display module 6, which is used to display the register table and the pattern, wherein the pattern is displayed next to the register table. The register table displays the line segment information of the pattern, for example, the column content of the register table displays the value of the slot position and the surface where the slot is located (such as the front or back of the flat plate). The rows of the register table represent the line segments on the pattern. When a row of the table is clicked, the corresponding line segment on the pattern next to the register table will be highlighted for easy inspection by the user.
[0082] A command control is displayed on the display module 6. After the command control is clicked, the calculation module, the judgment module and the program generation module work in sequence.
[0083] After the drawing file is imported into the method and system disclosed in the present invention, a program can be generated with one click, thus eliminating the intermediate programming steps and improving programming efficiency.
[0084] The above are only some embodiments of the present invention. For those skilled in the art, several modifications and improvements can be made without departing from the creative concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A method for programming slotting machine graphics, characterized in that: The following steps are involved: S1: importing a picture file, wherein the picture file contains a pattern; S2: extracting the coordinates of each feature point on the pattern; S3: Calculate all slot positions on the plane plate according to the coordinates of each feature point and determine whether each slot is opened on the front side or the back side of the plane plate, and save the slot positions according to the front side and the back side; The method to obtain the slot position on the flat plate is as follows: Calculate the vectors formed by the adjacent feature points excluding the last feature point, and solve the modulus of each vector respectively; The modulus of each vector is accumulated and summed to obtain the slot positions on the plane plate; The direction of the vector is from the feature point in the front order to the feature point in the back order; The method to determine whether the groove is opened on the front or back of the flat plate is as follows: Calculate the previous feature point (x i-1 ,y i-1 ) and the current feature point (x i ,y i ) constitutes a vector a=(x i -x i-1 ,y i -y i-1 ), the previous feature point (x i-1 ,y i-1 ) and the next feature point (x i+1 ,y i+1 ) is the vector b=(x i+1 -x i-1 ,y i+1 -y i-1 ); Judgment (x i -x i-1 )(y i+1 -y i-1 )-(y i -y i-1 )(x i+1 -x i-1 ) is greater than 0. If so, the slot position corresponding to the current feature point on the plane plate is filled in the first register belonging to the front side; if less than 0, the slot position corresponding to the current feature point on the plane plate is filled in the second register belonging to the back side; S4: Classify the front and back sides and generate a slotting program according to the slotting position on the flat plate.
2. The method for programming a slotting machine graphics according to claim 1, characterized in that: The feature points include the starting point, the end point and the intersection point of the line segment of the pattern.
3. The method for programming a slotting machine graphics according to claim 1, characterized in that: The format of the drawing is DXF.
4. A slotting machine graphics import programming system for implementing the slotting machine graphics import programming method of claim 1, characterized in that: include: An import module, used for importing a drawing file containing a pattern and extracting the coordinates of all feature points on the pattern; A calculation module, used for calculating the vector, vector modulus and vector outer product formed between the feature points; A judgment module, used to judge whether the groove corresponding to the characteristic point is opened on the front side or the back side of the plane plate; a storage module, comprising a first register and a second register, for storing the slot positions of the slots opened on the front side of the planar plate and the slot positions of the slots opened on the back side of the planar plate respectively; and A program generation module is used to generate a slotting program.
5. The slotting machine graphics import programming system for implementing the slotting machine graphics import programming method according to claim 4, characterized in that: Also included is a display module, which is used to display the register table.
6. The slotting machine graphics import programming system for implementing the slotting machine graphics import programming method according to claim 5, characterized in that: The display module is also used to display the pattern of the image file.
7. The slotting machine graphics import programming system for implementing the slotting machine graphics import programming method according to claim 5 or 6, characterized in that: The display module also displays a command control. After the command control is clicked, the calculation module, the judgment module and the program generation module work in sequence.
8. The slotting machine graphics import programming system for implementing the slotting machine graphics import programming method according to claim 6, characterized in that: The pattern is displayed next to the register table. The column content of the register table shows the slot position and the surface where the slot is located. The rows of the register table correspond to the line segments of the pattern. When a row of the table is clicked, the corresponding line segment on the pattern will be highlighted.
Citation Information
Patent Citations
Apparatus and method for printing corrugated cardboard sheets
CN101058264A
A method of constructing robot modules by using multiple languages
CN106406890A