Method for configuring code printing position of workpiece
By configuring coding parameters and analyzing drawings, the coding area and optimal position of the workpiece are calculated, and combined with the rotation angle of the coding machine, the problem of automatic configuration of the workpiece coding position in intelligent manufacturing is solved, improving coding efficiency and reducing the coding efficiency Manual intervention.
Patent Information
- Application Number
- CN202411118544.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-08-15
AI Technical Summary
In the field of intelligent manufacturing, it is difficult for the existing technology to automatically and quickly configure the coding position of workpieces, resulting in increased manual intervention and inefficient coding efficiency.
By configuring coding parameters, establishing the coordinate system of workpiece and plates, analyzing the drawings, calculating the coding area and the optimal coding position, combining the rotation angle and rotatable range of the coding machine, automatically configuring the coding position of the workpiece to ensure the coding. The code position is within the rotatable range of the coder.
It realizes automatic and rapid coding position configuration of workpieces, reduces manual intervention, improves coding efficiency, and is suitable for both before and after plate cutting.
Smart Images

Figure CN119129615A_ABST
Abstract
Description
Technical Field
[0001] The present invention is oriented to the field of intelligent manufacturing, relates to a digital processing technology for workpiece coding, and provides a new method for automatically and quickly configuring a workpiece coding position. Background Art
[0002] In modern factory production lines, when it is necessary to trace the whereabouts of workpieces, coding and scanning the workpieces is an effective way. The coding process may be before the plate is cut, or after the individual workpiece is sanded or leveled. The coding content can be a clear code, a graphic code, or both. The coding method can be laser coding or inkjet coding. In order to improve coding efficiency and reduce manual intervention, it is best to automatically configure the relatively optimal coding position according to the posture and size of each workpiece, providing technical support for subsequent automatic coding through coding equipment. Summary of the invention
[0003] The purpose of the present invention is to provide a method for automatically and quickly configuring the coding position of a workpiece in the field of intelligent manufacturing. The technical solution of the present invention is as follows:
[0004] A method for configuring a workpiece coding position comprises the following steps:
[0005] Step 1: Configure coding parameters according to the customer's coding requirements;
[0006] Step 2, establish the workpiece coordinate system;
[0007] Step 3: If the sheet workpiece is coded before cutting, a sheet coordinate system is established;
[0008] Step 4, parsing the workpiece drawing;
[0009] Step 5, according to the coding display mode, obtain the coding frame area;
[0010] Step 6: Calculate the printable area of the standard workpiece as follows:
[0011] (1) According to the coding safety distance, the outer contour of the coding frame area is expanded outward at an equal distance to obtain a new area formed by the expansion of the coding frame;
[0012] (2) Calculate the radius R of the circumscribed circle of the new area formed after the coding frame is expanded;
[0013] (3) The outer contour of the standard workpiece is retracted at an equal distance; all the inner contours of the standard workpiece are expanded at an equal distance, and the retracted and expanded distances are both the radius R of the circumscribed circle obtained in the previous step;
[0014] (4) performing redundant processing on the new contour after the outer contour of the standard workpiece is shrunk inward and the new contour after the inner contour is expanded outward to obtain the coding area of the standard workpiece;
[0015] Step 7, calculating the optimal coding position of the standard workpiece within the coding area of the standard workpiece;
[0016] Step 8: If the sheet metal workpiece is coded before cutting, calculate the best coding position for the sheet metal workpiece
[0017] (1) According to the "coding order" of the plate workpiece and the "priority axis" setting value of the coding machine, all the plate workpieces that need to be configured with coding positions are sorted by position;
[0018] (2) looping through the sorted list of plate workpieces, executing the following steps (3)-(5), and sequentially configuring the best coding position for each plate workpiece;
[0019] (3) Calculate the rotation angle of the coding machine according to the rotation angle of the plate workpiece;
[0020] (4) If the rotation angle of the coding machine of the plate workpiece is within the rotation range of the coding machine, it means that the coding position configuration of the standard workpiece is applicable to the current plate workpiece. According to the coding position coordinates of the standard workpiece, the coding position coordinates of the plate workpiece based on the plate coordinate system are calculated;
[0021] (5) If the rotation angle of the coding machine of the plate workpiece is not within the rotation range of the coding machine, it is necessary to reconfigure the coding position for the current plate workpiece;
[0022] Step 8: Automatic coding of workpieces.
[0023] Furthermore, in step 1, the coding parameters mainly include:
[0024] (1) Select the code display mode: the options include: graphic code, plain code, graphic code and plain code arranged in top and bottom, graphic code and plain code arranged in left and right;
[0025] (2) Configure the graphic code size: The configuration items include: graphic code length and graphic code width. Try to use a large graphic code size to configure the workpiece coding position.
[0026] (3) Configure the size of the plain code: The configuration items include: plain code length and plain code width. Prioritize using a large plain code size to configure the workpiece coding position;
[0027] (4) Find the starting point of the workpiece coding position: the options include: center point, upper left corner, lower left corner, upper right corner, lower right corner;
[0028] (5) Configure the coding safety distance;
[0029] (6) If the sheet metal workpiece is to be coded before cutting, configure the rotatable range of the coding machine;
[0030] (7) If the sheet workpieces are coded before cutting, configure the coding order of each workpiece;
[0031] (8) If the sheet workpiece is coded before cutting, the axial direction is preferred.
[0032] Further, step 4, parsing the workpiece drawing, includes:
[0033] If the sheet workpiece is coded before cutting, it is necessary to analyze the nesting diagram, generate the workpiece nesting filling diagram including the standard workpiece, the coordinates and rotation angle of the workpiece on the sheet, and calculate the length and width of the nested workpiece, the size type and center of gravity information of the workpiece;
[0034] If the sheet workpiece is to be coded after the sheet is cut, it is necessary to parse the single workpiece diagram, generate a standard workpiece filling diagram, and calculate the length and width of the workpiece, the size type and center of gravity information of the workpiece.
[0035] Furthermore, in step 7, the mode of finding the best coding position starting from the "center point" of the standard workpiece is as follows:
[0036] (1) Calculate the coordinates of the “center point” of the minimum circumscribed rectangle of the standard workpiece;
[0037] (2) Set the angle step, take the "center point" of the standard workpiece as the center of the circle, start from 0°, and draw a ray every angle step;
[0038] (3) Obtain the intersection of each ray and the printable area of the standard workpiece:
[0039] If the "center point" of the standard workpiece is above or outside the new outer contour of the printable area of the standard workpiece, obtain all the intersections of each ray and the new outer contour of the printable area of the standard workpiece; if there is no intersection, it means that the best coding position of the standard workpiece has not been found;
[0040] If the "center point" of the standard workpiece is above or within the new inner contour of the printable area of the standard workpiece, obtain all the intersections of each ray and the new inner contour of the printable area of the standard workpiece; if there is no intersection, it means that the best coding position of the standard workpiece has not been found;
[0041] (4) Calculate the distance between all intersection points and the “center point” of the standard workpiece and sort them from small to large. The intersection point with the smallest distance is the optimal coding position for the standard workpiece.
[0042] Further, in step 8, a method for calculating the rotation angle of the coding machine according to the rotation angle of the plate workpiece is provided.
[0043] as follows:
[0044] ① Obtain the rotatable range of the coding machine;
[0045] ② If the rotation range of the coding machine is -180°~180°, make adjustments according to the rotation angle of the plate workpiece:
[0046] If the rotation angle range of the plate workpiece is 0 to 180°, excluding 180°, the rotation angle of the coding machine is the rotation angle of the plate workpiece, that is, the range of 0° to 180°;
[0047] If the rotation angle range of the plate workpiece is 180 to 360°, including 180°, the rotation angle of the coding machine is the rotation angle of the plate workpiece minus 360°, that is, -180° to 0°;
[0048] ③If the rotatable range of the coding machine is -90°~90°, make adjustments according to the rotation angle of the plate workpiece:
[0049] If the rotation angle range of the plate workpiece is 0 to 90°, excluding 90°, the rotation angle of the coding machine is the rotation angle of the plate workpiece, that is, the range of 0° to 90°;
[0050] If the rotation angle range of the plate workpiece is 90° to 270°, excluding 270°, the rotation angle of the coding machine is the rotation angle of the plate workpiece minus 180°, that is, -90° to 90°;
[0051] If the rotation angle range of the plate workpiece is 270° to 360°, including 270°, the rotation angle of the coding machine is the rotation angle of the plate workpiece minus 360°, that is, the range of -90° to 0°.
[0052] Further, in step 8, the coordinates of the coding position of the plate workpiece based on the plate coordinate system are calculated.
[0053] The method is as follows:
[0054] ① Obtain the coding position coordinates of the standard workpiece;
[0055] ② Calculate the coordinates of the coding position when the standard workpiece rotates around the center of gravity by a specified angle, that is, the rotation angle of the coding machine of the plate workpiece coincides with the center of gravity of the plate workpiece;
[0056] ③ Obtain the center of gravity coordinates of the plate workpiece based on the plate coordinate system;
[0057] ④ When the center of gravity of the calculated standard workpiece coincides with the center of gravity of the plate workpiece, the coding position is based on the coordinates of the plate coordinate system.
[0058] Furthermore, in the case where a spray assembly line is required on the plate, in the processing of steps (4) and (5) of step 8, it is necessary to add a judgment on whether the coding position intersects with the assembly line; if so, a new position needs to be found again. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 Example of graphic code;
[0060] Figure 2 Example diagram of the clear code;
[0061] Figure 3 Example diagram of upper and lower layout of graphic code and plain code;
[0062] Figure 4 Example diagram of left and right layout of graphic code and plain code;
[0063] Figure 5 Example diagram of graphic code size;
[0064] Figure 6 Example diagram of clear code size;
[0065] Figure 7 Example diagram of finding the starting point for coding the workpiece;
[0066] Figure 8 Example diagram of workpiece coordinate system;
[0067] Fig. 9 Example diagram of plate coordinate system;
[0068] Fig.10 Example of coding frame area with graphic code and plain code arranged in upper and lower layout;
[0069] Fig.11 Example of coding frame area for graphic code and plain code layout on the left and right;
[0070] Fig.12 An example of a new area formed after the coding frame is expanded;
[0071] Fig.13 Example diagram of the radius of the circumscribed circle of the new area formed after the coding frame is expanded;
[0072] Fig.14 Example of the new contour after the standard workpiece contour is shrunk inwards and expanded outwards;
[0073] Fig.15 Example of a standard workpiece contour after inward and outward shrinkage and expansion, and the new contour after redundant processing;
[0074] Fig.16 Example diagram of standard workpiece center point;
[0075] Fig.17 Example of all intersections between a ray and the redundantly processed outer contour
[0076] Fig.18 Example of all intersections between a ray and the inner contour after redundancy processing
[0077] Fig.19Example of optimal coding position for standard workpieces
[0078] Fig. 20 Example of automatic coding of sheet metal workpieces DETAILED DESCRIPTION
[0079] The present invention is described below in conjunction with implementation cases.
[0080] 1. Configure coding parameters
[0081] Configure coding parameters according to the customer's coding requirements. Coding parameters mainly include:
[0082] (1) Coding display method. Figure 1-4 As shown, the options include: graphic code, plain code, graphic code and plain code arranged top to bottom, graphic code and plain code arranged left to right.
[0083] (2) Graphic code size. Figure 5 As shown in the figure, the configuration items include: graphic code length, graphic code width. You can configure three graphic code sizes, large, medium and small, according to your needs. Try to use the large graphic code size to configure the workpiece coding position first.
[0084] (3) Clear size. Figure 6 As shown in the figure, the configuration items include: clear code length and clear code width. You can configure three clear code sizes, large, medium and small, according to your needs. Try to use the large clear code size to configure the workpiece coding position first.
[0085] (4) Find the starting point of the workpiece coding position. Figure 7 The options shown are: Center (most commonly used), Upper Left Corner, Lower Left Corner, Upper Right Corner, Lower Right Corner.
[0086] (5) Coding safety distance. The minimum distance allowed between the outer contour of the coding frame and the inner and outer contours of the workpiece. The appropriate coding safety distance can be configured according to the machine accuracy.
[0087] (6) Rotatable range of the coding machine. This parameter is only applicable to the scenario of coding the sheet workpiece before cutting.
[0088] (7) Coding order. This parameter is only applicable to the scene of coding plate workpieces before cutting. The options include: from top to bottom and left to right, from left to right and top to bottom, from bottom to top and left to right, from left to right and bottom to top, from right to left and top to bottom, from right to left and bottom to top, find the next nearest workpiece, and increase in Y direction.
[0089] (8) Prioritize axial direction. This parameter is only applicable to the scenario of coding sheet workpieces before cutting. The moving speeds of the X-axis and Y-axis of the coding machine are very different. In order to improve the coding efficiency, try to move along the axis with faster moving speed. The options include: None, Prioritize X-axis parallel movement coding, Prioritize Y-axis parallel movement coding.
[0090] 2. Establish the workpiece coordinate system. The workpiece coordinate system takes the lower left corner of the minimum circumscribed rectangle of the workpiece as the origin, the horizontal right is the positive direction of the X axis, and the vertical upward is the positive direction of the Y axis.
[0091] An example of a workpiece coordinate system is Figure 8 .
[0092] 3. Establish the plate coordinate system. The plate coordinate system takes the lower left corner of the plate as the origin, the horizontal right is the positive direction of the X axis, and the vertical upward is the positive direction of the Y axis.
[0093] An example of a plate coordinate system is Fig. 9 .
[0094] 4. Analyze workpiece drawings
[0095] Parsing the workpiece drawing is the basis for configuring the workpiece coding position.
[0096] For the scenario of coding before cutting the plate, it is necessary to analyze the nesting diagram. The analysis result can generate the workpiece nesting filling diagram, the coordinates and rotation angle of the workpiece on the plate (if the nesting diagram is analyzed), and calculate the length and width of the nested workpiece, the size type and center of gravity of the workpiece, etc.
[0097] For the scenario of coding after sanding or leveling the workpiece, it is necessary to parse a single workpiece image. The parsing result can generate a standard workpiece filling map, calculate the length and width of the workpiece, the size type and center of gravity of the workpiece and other information.
[0098] The workpiece nesting filling diagram and the workpiece filling diagram both have a black background, and the workpiece surface is filled with white.
[0099] The drawing parsing algorithm is relatively complex and is not described in this document. Please refer to patent CN202310276738.X, which provides a parsing method for nesting drawings of plate-type workpieces.
[0100] 5. Get the coding frame area.
[0101] (1) If the "Code Display Mode" is "Graphic Code", the rectangular area defined by the "Graphic Code Length and Width" is used as the "Code Frame Area".
[0102] (2) If the “Coding Display Mode” is “Plain Code”, the rectangular area defined by the “Plain Code Length and Width” is used as the “Coding Frame Area”.
[0103] (3) If the "Coding Display Mode" is "Graphic Code and Plain Code Layout", the rectangular area defined by the "Graphic Code Length and Width" and the rectangular area defined by the "Plain Code Length and Width" are seamlessly connected and left-aligned to form a new area, which is used as the "Coding Frame Area". Fig.10 shown.
[0104] (4) If the "Coding Display Mode" is "Graphic Code and Plain Code Layout Left and Right", the rectangular area defined by the "Graphic Code Length and Width" and the rectangular area defined by the "Plain Code Length and Width" are seamlessly connected left and right and aligned at the top to form a new area, which is used as the "Coding Frame Area". Fig.11 shown.
[0105] 6. Expand the outer contour of the coding frame area at an equal distance, and the expansion distance is the "coding safety distance" to obtain the new area formed by the expansion of the coding frame. Fig.12 shown.
[0106] 7. Calculate the radius R of the circumscribed circle of the new area formed after the coding frame is expanded. Fig.13 shown.
[0107] 8. First, shrink the outer contour of the standard workpiece by an equal distance, and then expand all the inner contours of the standard workpiece by an equal distance. The shrinking and expanding distances are both the radius R of the circumscribed circle obtained in the previous step. Fig.14 shown.
[0108] 9. Perform redundant processing on the new contour after the outer contour of the standard workpiece is shrunk inward and the inner contour is expanded outward. The steps are as follows:
[0109] Remove all redundant contours except the new contour after the outer contour is indented.
[0110] Remove all redundant contours within the new contour after the inner contour is expanded.
[0111] According to practical experience, the size of the workpiece is usually much larger than the size of the coding frame. In order to save calculation time, the present invention improves the method of calculating the coding area of the standard workpiece. First, the coding frame is expanded according to the coding safety distance, and the circumscribed circle radius R of the new area formed after the coding frame is expanded is calculated. According to the circumscribed circle radius R, all the contours of the standard workpiece are expanded or contracted at equal distances, and then the new contours formed after contraction and expansion are processed redundantly. Fig.15 shown.
[0112] 10. Calculate the best coding position for standard workpieces.
[0113] The following example uses the method of finding the best coding position from the "center point" of a standard workpiece. The implementation methods of other "finding the starting point of the workpiece coding position" are similar. Just replace the "center point" in the following steps with "upper left corner", "lower left corner", "upper right corner" or "lower right corner". The specific steps are as follows:
[0114] (1) Calculate the coordinates of the "center point" of the standard workpiece. The "center point" of the standard workpiece is the intersection of the diagonals of the minimum circumscribed rectangle of the standard workpiece. Fig.16 shown.
[0115] (2) Set the angle step to 10°, take the center point of the standard workpiece as the center of the circle, start from 0° clockwise, and draw a ray every 10°, for a total of 36 rays.
[0116] (3) Obtain the intersection points of the 36 rays with the outer contour or inner contour after redundant processing.
[0117] ① If the "center point" of the standard workpiece is above or outside the "outer contour" after redundant processing, obtain all the intersections of the 36 rays and the "outer contour" after redundant processing. If there is no intersection, it means that the best coding position for the standard workpiece has not been found. Fig.17 shown.
[0118] ② If the "center point" of the standard workpiece is above or within the "inner contour" after redundant processing, obtain all the intersections of the 36 rays and the "inner contour" after redundant processing. If there is no intersection, it means that the best coding position for the standard workpiece has not been found. Fig.18 shown.
[0119] (4) Calculate the distance between all intersections and the "center point" of the standard workpiece and sort them from small to large. The intersection with the smallest distance is the best coding position for the standard workpiece. Fig.19 shown.
[0120] 11. Calculate the best coding position for sheet metal workpieces
[0121] (1) According to the "coding order" of the plate workpiece and the "priority axis" setting value of the coding machine, all the plate workpieces that need to be configured with coding positions are sorted by position.
[0122] (2) Loop through the sorted list of sheet metal workpieces and execute the following steps to configure the best coding position for each sheet metal workpiece in turn.
[0123] (3) Calculate the rotation angle of the coding machine according to the rotation angle of the plate workpiece.
[0124] ① Get the rotatable range of the coding machine.
[0125] ② If the rotation range of the coding machine is -180°~180°, make adjustments according to the rotation angle of the plate workpiece:
[0126] If the rotation angle range of the plate workpiece is 0 to 180°, excluding 180°, the rotation angle of the coding machine is the rotation angle of the plate workpiece, that is, in the range of 0° to 180°.
[0127] If the rotation angle range of the plate workpiece is 180° to 360°, including 180°, the rotation angle of the coding machine is the rotation angle of the plate workpiece minus 360°, that is, the range of -180° to 0°.
[0128] ③If the rotatable range of the coding machine is -90°~90°, make adjustments according to the rotation angle of the plate workpiece:
[0129] If the rotation angle range of the plate workpiece is 0 to 90°, excluding 90°, the rotation angle of the coding machine is the rotation angle of the plate workpiece, that is, in the range of 0° to 90°.
[0130] If the rotation angle range of the plate workpiece is 90° to 270°, excluding 270°, the rotation angle of the coding machine is the rotation angle of the plate workpiece minus 180°, that is, in the range of -90° to 90°.
[0131] If the rotation angle range of the plate workpiece is 270° to 360°, including 270°, the rotation angle of the coding machine is the rotation angle of the plate workpiece minus 360°, that is, the range of -90° to 0°.
[0132] (4) If the rotation angle of the coding machine of the plate workpiece is within the rotation range of the coding machine, it means that the coding position configuration of the standard workpiece is applicable to the current plate workpiece. According to the coding position coordinates of the standard workpiece, calculate the coding position coordinates of the plate workpiece based on the plate coordinate system:
[0133] ① Obtain the coding position coordinates of the standard workpiece.
[0134] ② Calculate the coordinates of the coding position when the standard workpiece rotates around the center of gravity by a specified angle (i.e. the rotation angle of the coding machine of the plate workpiece) and coincides with the center of gravity of the plate workpiece.
[0135] ③ Obtain the center of gravity coordinates of the plate workpiece based on the plate coordinate system.
[0136] ④ When the center of gravity of the calculated standard workpiece coincides with the center of gravity of the plate workpiece, the coding position is based on the coordinates of the plate coordinate system.
[0137] (5) If the rotation angle of the coding machine of the plate workpiece is not within the rotation range of the coding machine, it is necessary to reconfigure the coding position for the current plate workpiece.
[0138] (6) For the case where the assembly line is required to be sprayed on the plate, in the processing of the above steps (4) and (5), it is necessary to add a judgment on whether the coding position intersects with the assembly line. If it intersects, it is necessary to find a new position again.
[0139] 12. Automatic coding of workpieces
[0140] A template file of a single workpiece outline is generated based on the drawing analysis results, and the machine vision recognizes the workpiece based on the workpiece template. The manipulator installed on the marking station codes the workpiece based on the coordinates of the best coding position for the workpiece. Fig. 20 shown.
Claims
1. A method for configuring a workpiece coding position, comprising the following steps: Step 1: Configure coding parameters according to the customer's coding requirements; Step 2, establish the workpiece coordinate system; Step 3: If the sheet workpiece is coded before cutting, a sheet coordinate system is established; Step 4, parsing the workpiece drawing; Step 5, according to the coding display mode, obtain the coding frame area; Step 6: Calculate the printable area of the standard workpiece as follows: (1) According to the coding safety distance, the outer contour of the coding frame area is expanded outward at an equal distance to obtain a new area formed by the expansion of the coding frame; (2) Calculate the radius R of the circumscribed circle of the new area formed after the coding frame is expanded; (3) The outer contour of the standard workpiece is retracted at an equal distance; all the inner contours of the standard workpiece are expanded at an equal distance, and the retracted and expanded distances are both the radius R of the circumscribed circle obtained in the previous step; (4) performing redundant processing on the new contour after the outer contour of the standard workpiece is shrunk inward and the new contour after the inner contour is expanded outward to obtain the coding area of the standard workpiece; Step 7, calculating the optimal coding position of the standard workpiece within the coding area of the standard workpiece; Step 8: If the sheet workpiece is coded before cutting, calculate the best coding position for the sheet workpiece as follows: (1) According to the "coding order" of the plate workpiece and the "priority axis" setting value of the coding machine, all the plate workpieces that need to be configured with coding positions are sorted by position; (2) looping through the sorted list of plate workpieces, executing the following steps (3)-(5), and sequentially configuring the best coding position for each plate workpiece; (3) Calculate the rotation angle of the coding machine according to the rotation angle of the plate workpiece; (4) If the rotation angle of the coding machine of the plate workpiece is within the rotation range of the coding machine, it means that the coding position configuration of the standard workpiece is applicable to the current plate workpiece. According to the coding position coordinates of the standard workpiece, the coding position coordinates of the plate workpiece based on the plate coordinate system are calculated; (5) If the rotation angle of the coding machine of the plate workpiece is not within the rotation range of the coding machine, it is necessary to reconfigure the coding position for the current plate workpiece; Step 8: Automatic coding of workpieces.
2. The method for configuring the coding position of a workpiece according to claim 1, characterized in that: In step 1, the coding parameters mainly include: (1) Select the code display mode: the options include: graphic code, plain code, graphic code and plain code arranged in top and bottom, graphic code and plain code arranged in left and right; (2) Configure the graphic code size: The configuration items include: graphic code length and graphic code width. Try to use a large graphic code size to configure the workpiece coding position. (3) Configure the size of the plain code: The configuration items include: plain code length and plain code width. Prioritize using a large plain code size to configure the workpiece coding position; (4) Find the starting point of the workpiece coding position: the options include: center point, upper left corner, lower left corner, upper right corner, lower right corner; (5) Configure the coding safety distance; (6) If the sheet metal workpiece is to be coded before cutting, configure the rotatable range of the coding machine; (7) If the sheet workpieces are coded before cutting, configure the coding order of each workpiece; (8) If the sheet workpiece is coded before cutting, the axial direction is preferred.
3. The method for configuring the coding position of a workpiece according to claim 1, characterized in that: Step 4: parse the workpiece drawing, including: If the sheet workpiece is coded before cutting, it is necessary to analyze the nesting diagram, generate the workpiece nesting filling diagram including the standard workpiece, the coordinates and rotation angle of the workpiece on the sheet, and calculate the length and width of the nested workpiece, the size type and center of gravity information of the workpiece; If the sheet workpiece is to be coded after the sheet is cut, it is necessary to parse the single workpiece diagram, generate a standard workpiece filling diagram, and calculate the length and width of the workpiece, the size type and center of gravity information of the workpiece.
4. The method for configuring the coding position of a workpiece according to claim 1, characterized in that: In step 7, the mode of finding the best coding position starts from the "center point" of the standard workpiece. The specific steps are as follows: (1) Calculate the coordinates of the "center point" of the minimum circumscribed rectangle of the standard workpiece; (2) Set the angle step, take the "center point" of the standard workpiece as the center of the circle, start from 0°, and draw a ray every angle step; (3) Obtain the intersection of each ray and the printable area of the standard workpiece: If the "center point" of the master workpiece is above or outside the new outer contour of the printable area of the master workpiece, Obtain all intersection points of each ray with the new outer contour of the coding area of the standard workpiece; If there is no intersection, it means that the best coding position for the standard workpiece has not been found; If the "center point" of the master workpiece is on or within the new inner contour of the printable area of the master workpiece, Obtain all intersection points of each ray with the new inner contour of the coding area of the standard workpiece; If there is no intersection, it means that the best coding position for the standard workpiece has not been found; (4) Calculate the distance between all intersection points and the "center point" of the standard workpiece and sort them from small to large. The intersection point with the smallest distance is the optimal coding position for the standard workpiece.
5. The method for configuring the coding position of a workpiece according to claim 1, characterized in that: In step 8, the method for calculating the rotation angle of the coding machine according to the rotation angle of the plate workpiece is as follows: ① Obtain the rotatable range of the coding machine; ② If the rotation range of the coding machine is -180°~180°, make adjustments according to the rotation angle of the plate workpiece: If the rotation angle range of the plate workpiece is 0 to 180°, excluding 180°, the rotation angle of the coding machine is the rotation angle of the plate workpiece, that is, the range of 0° to 180°; If the rotation angle range of the plate workpiece is 180 to 360°, including 180°, the rotation angle of the coding machine is the rotation angle of the plate workpiece minus 360°, that is, -180° to 0°; ③If the rotatable range of the coding machine is -90°~90°, make adjustments according to the rotation angle of the plate workpiece: If the rotation angle range of the plate workpiece is 0 to 90°, excluding 90°, the rotation angle of the coding machine is the rotation angle of the plate workpiece, that is, the range of 0° to 90°; If the rotation angle range of the plate workpiece is 90° to 270°, excluding 270°, the rotation angle of the coding machine is the rotation angle of the plate workpiece minus 180°, that is, -90° to 90°; If the rotation angle range of the plate workpiece is 270° to 360°, including 270°, the rotation angle of the coding machine is the rotation angle of the plate workpiece minus 360°, that is, the range of -90° to 0°.
6. The method for configuring the coding position of a workpiece according to claim 1, characterized in that: In step 8, the method for calculating the coding position coordinates of the plate workpiece based on the plate coordinate system is as follows: ① Obtain the coding position coordinates of the standard workpiece; ② Calculate the coordinates of the coding position when the standard workpiece rotates around the center of gravity by a specified angle, that is, the rotation angle of the coding machine of the plate workpiece coincides with the center of gravity of the plate workpiece; ③ Obtain the center of gravity coordinates of the plate workpiece based on the plate coordinate system; ④ When the center of gravity of the calculated standard workpiece coincides with the center of gravity of the plate workpiece, the coding position is based on the coordinates of the plate coordinate system.
7. The method for configuring the coding position of a workpiece according to claim 1, characterized in that: In the case where a spraying assembly line is required on the plate, in the processing of steps (4) and (5) of step 8, it is necessary to add a judgment on whether the coding position intersects with the assembly line; if so, a new position needs to be found again.
Citation Information
Patent Citations
Part marking method and device based on DXF file and storable medium
CN113792361A
Label integrity self-adaptive detection method and system
CN114549423A
Projection picture output method, system and equipment based on physical module
CN115580716A
Novel intelligent image alignment method for photoetching equipment
CN116627006A
Character output device
JP1997127927A
