A method for configuring a workpiece coding position
By establishing the coordinate system of the workpiece and the plate, parsing the drawing, calculating the coding frame area and rotation angle, and automatically configuring the optimal coding position for the workpiece, the problem of low coding efficiency in the existing technology is solved, and an automated and efficient coding process is achieved.
Patent Information
- Application Number
- CN202411118544.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2044-08-15
AI Technical Summary
Existing technologies make it difficult to automatically configure the optimal coding position based on the workpiece's posture and size, resulting in low coding efficiency and requiring a lot of manual intervention.
By establishing the coordinate system of the workpiece and the plate, parsing the drawing, calculating the coding frame area, obtaining the coding safety distance, rotation angle and priority axis, the optimal coding position of the workpiece is automatically configured, and automatic coding is performed using machine vision recognition and a robot.
It realizes the automatic and rapid configuration of the coding position of the workpiece, reduces manual intervention, and improves coding efficiency and accuracy.
Smart Images

Figure CN119129615B_ABST
Abstract
Description
Technical Field
[0001] The present invention is aimed at the field of intelligent manufacturing, relates to a digital processing technology for workpiece coding, and provides a new method for automatically and quickly configuring the workpiece coding position. Background Art
[0002] When traceability is needed on modern factory production lines, coding and scanning are effective methods for identifying workpieces. Coding can occur before sheet metal cutting or after sanding or leveling individual workpieces. Coding can include clear codes, graphic codes, or both. Coding can be done using laser or inkjet. To improve coding efficiency and reduce manual intervention, it's ideal to automatically configure the optimal coding position based on the position and size of each workpiece, providing technical support for subsequent automated coding by 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 coding position for a workpiece comprises the following steps:
[0005] Step 1: Configure the 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, establish the sheet coordinate system;
[0008] Step 4, parsing the workpiece drawing;
[0009] Step 5: Get the coding frame area according to the coding display mode;
[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 at equal distances 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 retraction and expansion distances are both the circumscribed circle radius R obtained in the previous step;
[0014] (4) Redundant processing is performed 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: Calculate 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 optimal 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: Automatically code the workpiece.
[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 top to bottom, graphic code and plain code arranged left to 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 clear code: The configuration items include: clear code length and clear code width. Prioritize using a large clear 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, the coding machine should be configured with a rotation range;
[0030] (7) If the sheet metal workpieces are coded before cutting, configure the coding order for each workpiece;
[0031] (8) If the sheet metal workpiece is coded before cutting, the axial direction shall be given priority.
[0032] Furthermore, step 4, parsing the workpiece drawing, includes:
[0033] If the sheet metal workpiece is to be 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 metal, 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 metal workpiece is to be coded after cutting, it is necessary to parse the single workpiece image, generate a standard workpiece filling image, 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 optimal coding position pattern is found starting from the “center point” of the standard workpiece. The steps are 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 coding 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 optimal 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 with the new inner contour of the printable area of the standard workpiece; if there is no intersection, it means that the optimal 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] Furthermore, in step 8, a method for calculating the rotation angle of the coding machine according to the rotation angle of the plate workpiece is used.
[0043] as follows:
[0044] ① Get the rotation range of the coding machine;
[0045] ② If the rotation range of the coding machine is -180° to 180°, make adjustments based on 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 degrees, including 180 degrees, the rotation angle of the coding machine is the rotation angle of the plate workpiece minus 360 degrees, that is, the range of -180 degrees to 0 degrees;
[0048] ③ If the rotation range of the coding machine is -90° to 90°, make adjustments based on 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, the range of -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] Furthermore, 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 coordinates of the center of gravity 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, for 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 it intersects, a new position needs to be found again. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 Graphic code example diagram;
[0060] Figure 2 Example diagram of 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] Figure 9 Example diagram of plate coordinate system;
[0068] Figure 10 Example diagram of the coding frame area with graphic code and plain code arranged above and below;
[0069] Figure 11 Example diagram of the coding frame area for graphic codes and plain codes arranged on the left and right;
[0070] Figure 12 An example of the new area formed after the coding frame is expanded;
[0071] Figure 13 Example diagram of the circumscribed circle radius of the new area formed after the coding frame is expanded;
[0072] Figure 14 Example of the new contour after the standard workpiece contour is shrunk inward and expanded outward;
[0073] Figure 15 Example of the new contour after redundant processing of the standard workpiece contour after shrinking and expanding;
[0074] Figure 16 Example diagram of standard workpiece center point;
[0075] Figure 17 Example of all intersections between rays and the outer contour after redundant processing
[0076] Figure 18 Example of all intersections between rays and the inner contour after redundant processing
[0077] Figure 19Example of optimal coding position for standard workpieces
[0078] Figure 20 Example of automatic coding of sheet metal workpieces DETAILED DESCRIPTION
[0079] The present invention is described below with reference to implementation cases.
[0080] 1. Configure coding parameters
[0081] Configure coding parameters according to the customer's coding requirements. Coding parameters mainly include:
[0082] (1) Code display method. Figure 1-4 As shown, the options include: graphic code, plain code, graphic code and plain code arranged top to bottom, and graphic code and plain code arranged left to right.
[0083] (2) Graphic code size. Figure 5 As shown, the configuration items include: graphic code length and graphic code width. You can configure three graphic code sizes: large, medium, and small according to your needs. Prioritize using the large graphic code size to configure the workpiece coding position.
[0084] (3) Clear size. Figure 6 As shown, the configuration items include: code length and code width. You can configure three code sizes: large, medium, and small according to your needs. Try to use the large code size to configure the workpiece coding position first.
[0085] (4) Find the starting point of the workpiece coding position. Figure 7 The available options 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 coding of sheet metal workpieces before cutting. The options include: from top to bottom and from left to right, from left to right and from top to bottom, from bottom to top and from left to right, from left to right and from bottom to top, from right to left and from top to bottom, from right to left and from bottom to top, find the next nearest workpiece, and increase in Y direction.
[0089] (8) Prioritize Axis. This parameter is only applicable to the coding of sheet metal workpieces before cutting. The X-axis and Y-axis movement speeds of the coding machine vary greatly. To improve coding efficiency, try to move along the axis with the faster movement speed. The options are: None, Prioritize X-axis parallel movement coding, and 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 direction is the positive direction of the X axis, and the vertical upward direction 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 direction is the positive direction of the X axis, and the vertical upward direction is the positive direction of the Y axis.
[0093] An example of a plate coordinate system is Figure 9 .
[0094] 4. Analyze workpiece drawings
[0095] Parsing the workpiece drawing is the basis for configuring the workpiece coding position.
[0096] For coding before cutting, the nesting diagram needs to be parsed. The parsing results can generate the workpiece nesting filling diagram, the coordinates and rotation angle of the workpiece on the plate (if the nesting diagram is parsed), and calculate the length and width of the nested workpiece, the size type and center of gravity of the workpiece.
[0097] For coding scenarios where the workpiece is sanded or leveled before being coded, a single workpiece image needs to be parsed. The parsing result can be used to generate a standard workpiece filling image, calculating information such as the length and width of the workpiece, the size type, and the center of gravity.
[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. Patent CN202310276738.X provides a parsing method for nesting drawings of sheet metal 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" will be used as the "Code Frame Area".
[0102] (2) If the "Code Display Mode" is "Clear Code", the rectangular area defined by the "Clear Code Length and Width" will be used as the "Code 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". Figure 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 and aligned on the top to form a new area, which is used as the "Coding Frame Area". Figure 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. Figure 12 shown.
[0106] 7. Calculate the radius R of the circumscribed circle of the new area formed after the coding frame is expanded. Figure 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. Figure 14 shown.
[0108] 9. Perform redundancy processing on the new contour after shrinking the outer contour of the standard workpiece and expanding the inner contour. 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. Figure 15 shown.
[0112] 10. Calculate the optimal coding position for standard workpieces.
[0113] The following example uses the method of finding the optimal coding position starting from the "center point" of a standard workpiece. The implementation of other "finding the starting point of the workpiece coding position" is similar. Just replace "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. Figure 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 of 36 rays and 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. Figure 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. Figure 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. Figure 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 plate workpieces and perform the following steps to configure the best coding position for each plate 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 rotation range of the coding machine.
[0125] ② If the rotation range of the coding machine is -180° to 180°, make adjustments based on 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 degrees, including 180 degrees, the rotation angle of the coding machine is the rotation angle of the plate workpiece minus 360 degrees, that is, the range of -180 degrees to 0 degrees.
[0128] ③ If the rotation range of the coding machine is -90° to 90°, make adjustments based on 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, 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 for 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 steps (4) and (5) above, it is necessary to add a judgment on whether the coding position intersects with the assembly line. If it intersects, a new position needs to be found.
[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 optimal coding position of the workpiece. Figure 20 shown.
Claims
1. A method for configuring a workpiece coding position, comprising the following steps: Step 1: Configure the 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, establish the sheet coordinate system; Step 4, parsing the workpiece drawing; Step 5: Get the coding frame area according to the coding display mode; 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 at equal distances 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 equal distances; all inner contours of the standard workpiece are expanded at equal distances, and the retraction and expansion distances are both the radius R of the circumscribed circle obtained in the previous step; (4) Redundant processing is performed 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: Find the best coding position starting from the center point of the standard workpiece within the coding area 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 coding area of the standard workpiece: If the "center point" of the standard workpiece is above or outside the outer contour of the codeable area of the standard workpiece, obtain all intersection points of each ray with the new outer contour of the codeable 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 standard workpiece is above or within the inner contour of the codeable area of the standard workpiece, obtain all intersection points of each ray with the new inner contour of the codeable 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 best coding position for the standard workpiece; Step 8: If the sheet metal workpiece is coded before cutting, calculate the optimal coding position for the sheet metal 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) Loop through the sorted sheet workpiece list and execute the following steps (3)-(5) to configure the best coding position for each sheet workpiece in turn; (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 9: Automatically code the workpiece.
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 top to bottom, graphic code and plain code arranged left to right; (2) Configure the graphic code size: Configuration items include: graphic code length, graphic code width; (3) Configure the size of the plain code: Configuration items include: plain code length and plain code width; (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, the coding machine should be configured with a rotation range; (7) If the sheet metal workpieces are coded before cutting, configure the coding order for each workpiece; (8) If the sheet metal workpiece is coded before cutting, the axial direction shall be given priority.
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 metal workpiece is to be 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 metal, and calculate the length and width of the nested workpiece, the size type and center of gravity information of the workpiece; If the sheet metal workpiece is to be coded after cutting, it is necessary to parse the single workpiece image, generate a standard workpiece filling image, 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 8 (3), the method for calculating the rotation angle of the coding machine according to the rotation angle of the plate workpiece is as follows: 1) Obtain the rotation range of the coding machine; 2) If the rotation range of the coding machine is -180°~180°, make adjustments based on the rotation angle of the plate workpiece: If the rotation angle range of the plate workpiece is 0~180°, excluding 180°, the rotation angle of the coding machine is the rotation angle of the plate workpiece, that is, the range of 0°~180°; If the rotation angle range of the plate workpiece is 180~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°~0°; 3) If the rotation 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~90°, excluding 90°, the rotation angle of the coding machine is the rotation angle of the plate workpiece, that is, the range of 0°~90°; If the rotation angle range of the plate workpiece is 90°~270°, excluding 270°, the rotation angle of the coding machine is the rotation angle of the plate workpiece minus 180°, that is, the range of -90°~90°; If the rotation angle range of the plate workpiece is 270°~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°~0°.
5. The method for configuring the coding position of a workpiece according to claim 1, characterized in that: In step 8 (4), the method for calculating the coding position coordinates of the plate workpiece based on the plate coordinate system is as follows: 1) Obtain the coding position coordinates of the standard workpiece; 2) 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; 3) Obtain the coordinates of the center of gravity of the plate workpiece based on the plate coordinate system; 4) When the center of gravity of the standard workpiece is calculated to coincide with the center of gravity of the plate workpiece, the coding position is based on the coordinates of the plate coordinate system.
6. The method for configuring the coding position of a workpiece according to claim 1, characterized in that: For 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 it intersects, a new position needs to be found again.
Citation Information
Patent Citations
Analytical method for jacking drawing of plate workpiece
CN116342727A
Part marking method and device based on DXF file and storable medium
CN113792361A
Label integrity self-adaptive detection method and system
CN114549423A