Automatic wiring method and automatic wiring device for sensors of a mold
By performing grid division and automatic wiring path planning on the mold, the problem of relying on engineers' experience for mold sensor cable layout is solved, achieving efficient and automated cable layout and reducing wiring variability.
Patent Information
- Application Number
- CN202311874246.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-12-29
Smart Images

Figure CN117644614B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of injection molding technology, and in particular to an automatic wiring method and device for sensors in molds. Background Technology
[0002] When installing sensors on a mold, it is necessary to select a suitable installation location based on the mold's structure. At the same time, since the sensor needs to connect with transmitters, detection equipment, etc., a cable needs to be led out from the sensor to the outside of the mold. However, there are many interfering components in the mold, such as screws, pins, inserts, ejector pins, etc. Therefore, for engineers, designing the cable layout takes a long time and relies on their experience. Summary of the Invention
[0003] This invention aims to at least solve one of the technical problems existing in related technologies. To this end, this invention proposes an automatic wiring method for sensors in molds, which can reduce reliance on engineers' experience and improve mold manufacturing efficiency.
[0004] The present invention also proposes an automatic wiring device for sensors of molds.
[0005] The present invention also proposes an electronic device.
[0006] The present invention also proposes a non-transitory computer-readable storage medium.
[0007] According to an embodiment of the first aspect of the present invention, an automatic wiring method for a sensor in a mold involves dividing the mold into multiple grid cells, further dividing the grid cells into interference grids and complete grids based on whether the grid cells interfere with interference components of the mold; determining the sensor's mounting position on the mold and the sensor cable's lead-out position on the mold; determining a starting grid in the grid cells corresponding to the mounting position and a ending grid in the complete grid corresponding to the lead-out position; avoiding the interference grids and connecting the complete grids in series to obtain the wiring path of the cable, wherein the wiring path connects the starting grid and the ending grid.
[0008] According to the automatic wiring method for sensors in a mold according to an embodiment of the present invention, the mold is divided into grids and the complete grids are connected to form wiring paths. In this way, interference components can be automatically avoided during the wiring process of sensor cables, thereby improving the mold manufacturing efficiency and reducing the dependence of the wiring process on the engineer's experience, so as to avoid wiring differences caused by differences in the engineer's experience.
[0009] According to one embodiment of the present invention, obtaining the wiring path of the cable by avoiding the interference grid and concatenating the complete grid includes:
[0010] The wiring path is formed in a rectangular area with the line connecting the starting grid and the ending grid as its diagonal.
[0011] According to one embodiment of the present invention, obtaining the wiring path of the cable by avoiding the interference grid and concatenating the complete grid includes:
[0012] A pre-selected path is formed by connecting multiple wiring segments, wherein the included angle between adjacent wiring segments is not less than 90 degrees;
[0013] From all the pre-selected paths, select the pre-selected path with the fewest or shortest number of cabling segments as the cabling path.
[0014] According to one embodiment of the present invention, selecting the pre-selected path with the fewest or shortest number of wiring segments from all the pre-selected paths as the wiring path includes:
[0015] The corner positions of the selected pre-selected path are smoothed to obtain the wiring path.
[0016] According to one embodiment of the present invention, obtaining the wiring path of the cable by avoiding the interference grid and concatenating the complete grid includes:
[0017] The direction of the wiring path is determined by the position of the terminating grid relative to the starting grid.
[0018] The complete grid includes a first grid with adjacent complete grids along the direction of travel, and a second grid without adjacent complete grids along the direction of travel, with the first grid connected to form the wiring path.
[0019] According to an embodiment of the present invention, determining the starting grid corresponding to the setting position in the grid cell and determining the ending grid corresponding to the lead-out position in the complete grid includes:
[0020] Multiple complete grids located at the edges are determined as candidate grids based on the aforementioned lead-out positions;
[0021] The candidate grid is divided into a first type of grid and a second type of grid. If the number of complete grids adjacent to the candidate grid in the direction of the starting grid is 2, then the candidate grid is a first type of grid; otherwise, it is a second type of grid.
[0022] Select the termination grid from the first type of grid.
[0023] According to an embodiment of the present invention, determining the starting grid corresponding to the setting position in the grid cell and determining the ending grid corresponding to the lead-out position in the complete grid further includes:
[0024] The aforementioned lead-out positions determine multiple grid cells located at the edges as candidate grids;
[0025] If, by avoiding the interference grid and concatenating the complete grid, a wiring path connecting the starting grid and the current candidate grid cannot be obtained, then the termination grid is determined from other candidate grids.
[0026] According to one embodiment of the present invention, the further subdivision of the mesh cells, obtaining an interference mesh and a complete mesh based on whether the mesh cells interfere with the interference components of the mold, includes:
[0027] The type of mesh element is determined to be either an interference mesh or a complete mesh by the surface area, mesh size, minimum angle, maximum angle, aspect ratio, boundary fitting, or mesh distortion of the mesh element.
[0028] According to one embodiment of the present invention, the step of dividing the mold into multiple mesh elements includes:
[0029] The mold is divided into hexahedral meshes, and the size of the hexahedral mesh is determined by the cross-sectional dimensions of the cables to be laid.
[0030] An automatic wiring apparatus for sensors of a mold according to a second aspect embodiment of the present invention includes:
[0031] The meshing module is used to divide the mold into multiple mesh units, and further divide the mesh units to obtain interference meshes and complete meshes based on whether the mesh units interfere with the interference components of the mold.
[0032] A positioning module is used to determine the setting position of the sensor on the mold and the lead-out position of the sensor cable on the mold;
[0033] The determining module is used to determine the starting grid corresponding to the setting position in the grid cell, and to determine the ending grid corresponding to the lead-out position in the complete grid;
[0034] A generation module is used to avoid the interference grid and concatenate the complete grid to obtain the wiring path of the cable, wherein the wiring path connects the starting grid and the ending grid.
[0035] The automatic wiring device for the sensor of the mold according to the embodiment of the present invention has the same effect as the automatic wiring method for the sensor of the mold described above, and will not be repeated here.
[0036] An electronic device according to a third aspect of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the automatic wiring method for the sensors of the mold described above.
[0037] The electronic device according to the embodiments of the present invention has the same effect as the automatic wiring method of the sensor of the mold described above, and will not be described again here.
[0038] According to a fourth aspect of the present invention, a non-transitory computer-readable storage medium is provided thereon storing a computer program that, when executed by a processor, implements the automatic wiring method for the sensors of the mold described above.
[0039] The non-transitory computer-readable storage medium according to embodiments of the present invention has the same effect as the automatic wiring method for the sensors of the mold described above, and will not be repeated here.
[0040] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0041] To more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0042] Figure 1 This is a flowchart illustrating the automatic wiring method for sensors in injection molds provided by the present invention.
[0043] Figure 2 This is a schematic diagram of the wiring path generated on the mold provided by the present invention;
[0044] Figure 3 This is a schematic diagram of the automatic wiring device for the sensor of the mold provided by the present invention;
[0045] Figure 4 This is a schematic diagram of the structure of the electronic device provided by the present invention.
[0046] Figure label:
[0047] 10. Mold; 20. Interference component; 30. Wiring path; 31. Wiring segment; 40. Mesh cell; 50. Rectangular area. Detailed Implementation
[0048] The embodiments of the present invention will be described in further detail below with reference to the accompanying drawings and examples. The following examples are for illustrative purposes only and should not be construed as limiting the scope of the invention.
[0049] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0050] Before introducing the automatic wiring method for the mold sensors of this invention, the application scenarios of the automatic wiring method for the mold will be explained first. The automatic wiring method for the mold sensors of this invention can be applied to industrial control computers, as well as to smart terminals such as computers and tablets. This invention does not impose any special limitations here, as long as it can support and implement the automatic wiring method for the mold sensors of this invention.
[0051] Please see Figure 1 According to an embodiment of the first aspect of the present invention, an automatic wiring method for sensors of a mold is provided, comprising at least the following steps S100 to S400.
[0052] S100. The mold 10 is meshed to obtain multiple mesh elements 40. The mesh elements 40 are further subdivided, and interference mesh and complete mesh are obtained by determining whether the mesh elements interfere with the interference components of the mold.
[0053] According to embodiments of this application, in conjunction with Figure 2 The mold 10 here can be an injection molding module, or it can be other types of processing molds 10. When meshing the mold 10, the plane where the sensor is located can be meshed (the thickness direction dimension is ignored at this time), so that it is not necessary to mesh the entire mold 10, thereby improving the efficiency of S100.
[0054] In one embodiment, combined Figure 2The mold 10 is divided into hexahedral meshes. The size of the hexahedral mesh is determined by the cross-sectional dimensions of the cable to be laid, thus ensuring that the cable can be arranged within the mesh cells 40. Cable channels can be pre-cut in the mold 10, with the wiring path 30 corresponding to these channels. The cross-sectional dimensions of the cable determine the cross-sectional dimensions of the cable channels, which are then placed within the mesh cells 40. Generally, the cable cross-section is circular, in which case the size of the mesh cell 40 is primarily determined by the cable diameter. Of course, the cable cross-section may also have other shapes. Based on the hexahedral mesh division of the mold 10, the cable is generally placed along the centerline of the mesh cell 40, rather than along its diagonals; that is, the cable is centered within the mesh cell 40 to ensure reliable cable arrangement.
[0055] In S100, the mesh cells are further divided to obtain interference meshes and complete meshes. The interference meshes and complete meshes are obtained by whether the mesh cells 40 interfere with the interference components 20 of the mold 10.
[0056] Figure 2 In the mold 10, there are multiple interference components 20. Here, interference components 20 refer to any component that may interfere with the cable when laying the cable on the mold. Taking the injection mold 10 as an example, interference components 20 generally include screws, ejector pins, angled ejectors, inserts, etc. Due to the presence of interference components 20, the mold 10 is not a complete structure at the sensor level. Therefore, if the mold 10 is meshed, some meshes are complete, while others are incomplete due to the presence of interference components 20. Incomplete meshes are called interference meshes, while complete meshes are called complete meshes.
[0057] The methods for determining whether a mesh is complete include, but are not limited to, determining whether mesh cell 40 is an interference mesh or a complete mesh based on the surface area, mesh size, minimum angle, maximum angle, aspect ratio, boundary fitting, and mesh distortion. Specifically:
[0058] Surface area: Taking a hexahedral mesh as an example, surface area refers to the sum of the surface areas of all hexahedral meshes. Surface area is an important parameter because it reflects the geometric characteristics and boundary shape of an object or region. For some applications, such as fluid dynamics simulations, the accuracy of surface area has a significant impact on the accuracy of simulation results. There will be a large difference between the surface area of the interference mesh and the preset surface area.
[0059] Mesh size: Mesh size refers to the size or side length of the mesh cell 40. The mesh size of the interference mesh will be smaller than the preset size.
[0060] Minimum Angle: The minimum angle refers to the smallest interior angle of any tetrahedron in a tetrahedral mesh. A smaller minimum angle means that the tetrahedron becomes flattened or stretched. Generally speaking, a larger minimum angle is more advantageous for numerical calculations. The minimum angle of an interfering mesh will be smaller than the preset angle. For a hexahedral mesh, the minimum angle of a complete mesh without interference is 90 degrees or close to 90 degrees.
[0061] Maximum Angle: The maximum angle refers to the largest interior angle of any tetrahedron in the tetrahedral mesh. A larger maximum angle means that the tetrahedron shape is too sharp, which may affect the accuracy of numerical calculations. The maximum angle of the interference mesh will be less than or greater than the preset angle. For hexahedral meshes, the maximum angle of a complete mesh without interference is 90 degrees or close to 90 degrees.
[0062] Aspect ratio: The aspect ratio refers to the ratio between the longest side and the shortest side of a tetrahedral element.
[0063] Boundary fitting: Boundary fitting refers to the degree to which the mesh element 40 fits the boundary of the object or region. Better boundary fitting means that the mesh matches the actual geometry better, which helps improve the accuracy of simulation or calculation.
[0064] Mesh distortion: Mesh distortion describes the degree of distortion in the shape of cells within a tetrahedral mesh. A smaller mesh distortion indicates that the mesh cells are closer to the ideal shape, which is beneficial for the accuracy and stability of numerical calculations.
[0065] S200. Determine the sensor's mounting position on the mold 10 and the lead-out position of the cable connecting the sensor.
[0066] In the S200, since the object being detected by the sensor is fixed, the sensor's location is generally also fixed. Furthermore, to facilitate connection between the sensor and other components, the lead-out locations are roughly determined.
[0067] S300. Determine and set the starting grid corresponding to the position in the grid cell, and determine and draw out the ending grid corresponding to the position in the complete grid.
[0068] The sensor's location is fixed; generally, a unique starting grid can be determined from the sensor's position within the grid cells. This starting grid doesn't necessarily need to be a complete grid; it only needs to cover an area sufficient for sensor installation. Therefore, the starting position of wiring path 30 can be determined based on the starting grid. The area corresponding to the cable's exit point in the mold may be small; in this case, a unique ending grid can be determined based on the exit point. More often, the area corresponding to the exit point can correspond to multiple grid cells located at the mold edge. In this case, multiple ending grids can be determined from the exit point, and these multiple ending grids can all be selected as the endpoints of the wiring path. Figure 2 For example, in order to facilitate the connection between the sensor and other components outside the mold, it is possible that the cable can be easily connected as long as it is led out from the left side of the mold. In this case, the lead-out position refers to the left side of the mold, and the complete grid on the left edge of the mold may be the termination grid.
[0069] In one embodiment, S300 includes:
[0070] S310. Determine multiple complete grids located at the edge as candidate grids based on the lead-out position;
[0071] S320. Divide the candidate grid into a first type of grid and a second type of grid. If the number of complete grids adjacent to the candidate grid in the direction of the starting grid is 2, then the candidate grid is a first type of grid; otherwise, it is a second type of grid.
[0072] S330, Select the termination grid from the first type of grid.
[0073] In S320, with Figure 2 For example, the starting grid is located to the lower right of the candidate grids. If a candidate grid is a first-type grid, then in the adjacent grids of this candidate grid, the grid cells on the right and the grid cells below it are complete grids. Therefore, when generating routing paths, this candidate grid can generate routing paths downwards or to the right, thus increasing its probability of obtaining the optimal routing path. The optimal routing path 30 is determined not only by the number of routing segments 31 mentioned above, but also by the total length of the routing path 30. Generally, a shorter routing path 30 with fewer corners is better. For second-type grids, since the grid cells adjacent to this candidate grid are interference grids on the right or below, this candidate grid can only generate routing paths in one direction at most.
[0074] Based on the candidate meshes in S310, a corresponding routing path 30 can generally be obtained. However, in some cases, only one or a few candidate meshes may yield a corresponding routing path. In such cases, S300 also includes:
[0075] If S340 avoids interference grids and cascades complete grids, and cannot obtain a wiring path connecting the starting grid and the current candidate grid, then the termination grid is determined from other candidate grids.
[0076] S400, avoids interference grids and connects complete grids to obtain cable routing path 30, which connects the starting grid and the ending grid.
[0077] According to embodiments of this application, as long as a routing path 30 obtained by concatenating complete meshes can be generated at the starting and ending meshes, routing can be performed based on the current routing path 30. The routing path may be long or short, and may also have many corners. Based on this, embodiments of this application propose some optimization schemes to obtain routing paths 30 that are relatively short or have relatively few corners.
[0078] In one embodiment, S400 includes S410: forming a wiring path in a rectangular area formed by the line connecting the start grid and the end grid as the diagonal.
[0079] By first defining a rectangular region of 50, the target object for mesh generation is narrowed down, improving the efficiency of mesh generation. Furthermore, because a rectangular region of 50 is defined, the mesh determination process is more targeted, further improving the efficiency of mesh determination. For example, Figure 2 As can be seen, there are many interference components 20 on the surface of the mold 10 where the sensor is located, but the number of interference components 20 in the rectangular area 50 decreases by a factor of two, thus reducing the workload required to determine the grid cells 40 by a factor of two. Furthermore, it is worth mentioning that because the area of the wiring path 30 was pre-divided, the length of the final generated wiring path 30 is also quite ideal, allowing for the quick finding of the shortest wiring path 30, which facilitates cable arrangement.
[0080] According to an embodiment of this application, S400 may include:
[0081] S420. A pre-selected path is formed by connecting multiple wiring segments 31, wherein the included angle between adjacent wiring segments 31 is not less than 90 degrees.
[0082] S430. From all the pre-selected paths, select the pre-selected path with the fewest or shortest number of cabling segments 31 as the cabling path 30.
[0083] In S420, the distribution of wiring segment 31 includes two scenarios:
[0084] In the first scenario, the wiring segment 31 is parallel to the side of the rectangular area 50, ensuring that the wiring path 30 is set along the centerline of the grid cell 40, rather than along the diagonal of the grid cell 40. In this case, the cable can be centered in the grid cell 40, resulting in a more reliable cable distribution, and the included angle between adjacent wiring segments 31 is 90 degrees.
[0085] In another scenario, the wiring segment 31 and the edge of the grid cell are at an angle, with the included angle being no less than 90 degrees. By ensuring that the angle is no less than 90 degrees, excessive bending of the cable can be avoided, thus protecting the cable. In this case, the wiring path 30 may be set along the diagonal of the grid cell 40, or it may be at an angle to the diagonal.
[0086] According to the embodiments of this application, the wiring path 30 is not unique. In this case, it can be randomly selected or preferentially selected from multiple wiring paths 30. The method of preferentially selecting the wiring path 30 includes considering the number of wiring segments 31: the fewer the number of wiring segments 31, the fewer the corners of the pre-selected path. Fewer corners obviously make the cable layout simpler, which is beneficial for cable maintenance and avoids cable damage at corner positions. Figure 2 In this configuration, there are three cabling segments 31, and the angle between any two adjacent cabling segments 31 is 90 degrees. In addition, when selecting the optimal cabling path 30, the total length of all cabling segments 31 can be taken into consideration. The shorter the length, the easier the cabling and the better the cost control.
[0087] To protect the cables, the corners of the selected pre-selected paths can be smoothed.
[0088] According to one embodiment of this application, S400 includes:
[0089] S440. Determine the direction of the wiring path 30 based on the position of the terminating grid relative to the starting grid.
[0090] S450, a complete grid includes a first grid with adjacent complete grids along the direction of orientation, and a second grid without adjacent complete grids along the direction of orientation, and the first grid is connected to form a wiring path 30.
[0091] In S440, combined with Figure 2 The terminating grid is located to the upper left of the starting grid; therefore, the overall direction of the wiring path 30 is along the upper left. This direction can be decomposed, meaning the direction includes the left and the top.
[0092] Based on the above, in S450, a complete mesh includes a first mesh with adjacent complete meshes along the orientation direction, and a second mesh without adjacent complete meshes along the orientation direction. The first meshes are connected to form a wiring path 30. Taking the orientation direction as the upper left direction as an example, a complete mesh including an adjacent complete mesh along the orientation direction means that for a specific complete mesh, the adjacent mesh cells 40 located to its left and above are also complete meshes, and in this case, the specific complete mesh is the first mesh. A second mesh without adjacent complete meshes along the orientation direction means that for a specific complete mesh, at least one of the adjacent mesh cells 40 located to its left and above is an interference mesh, and in this case, the specific complete mesh is the second mesh. Since the second grid can only approach the terminal grid in one direction after decomposition (left or top), the final routing path 30 connecting the second grid may not reach the terminal grid. However, for the first grid, since it can approach the terminal grid in two directions after decomposition (left and top), the probability of obtaining a routing path 30 passing through the terminal grid from the first grid is significantly increased. Therefore, by further judging the complete grid, the efficiency of obtaining the routing path 30 can be further improved. Of course, it is also possible that a routing path 30 passing through the terminal grid cannot be formed by connecting only the first grid. In this case, some second grids can be appropriately selected.
[0093] It's worth noting that there are many methods for generating the wiring path 30, not limited to dividing the rectangular region 50 or filtering the first grid as mentioned above. Any method that can generate a wiring path 30 formed by connecting complete grids between the starting and ending grids is acceptable. Furthermore, the wiring path 30 does not necessarily require each wiring segment 31 to follow the aforementioned direction; it can have appropriate detours, for example... Figure 2 In order to avoid interference with the grid, wiring segments 31 facing to the right or downward may also be included.
[0094] According to an embodiment of this application, the mold 10 is divided into grids, and the complete grids are connected to form a wiring path 30. This allows for the automatic avoidance of interference components 20 during the wiring process of the sensor cable, thereby improving the fabrication efficiency of the mold 10 and reducing the dependence of the wiring process on the engineer's experience, thus avoiding wiring differences caused by differences in the engineer's experience.
[0095] According to an embodiment of the second aspect of the present invention, please refer to Figure 3 An automatic wiring device for sensors of a mold is provided, comprising:
[0096] The meshing module 410 is used to mesh the mold to obtain multiple mesh units, and further divide the mesh units to obtain an interference mesh and a complete mesh based on whether the mesh units interfere with the interference components of the mold.
[0097] The positioning module 420 is used to determine the setting position of the sensor on the mold and the lead-out position of the sensor cable on the mold;
[0098] The determining module 430 is used to determine the starting grid corresponding to the setting position in the grid cell, and to determine the ending grid corresponding to the lead-out position in the complete grid;
[0099] The generation module 440 is used to avoid the interference grid and connect the complete grid in series to obtain the wiring path of the cable, wherein the wiring path connects the starting grid and the ending grid.
[0100] According to the embodiments of the present invention, the content of the first aspect of the embodiments can be used to explain the automatic wiring device for the sensor of the mold of the present invention, so it will not be repeated here.
[0101] Figure 4 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 4 As shown, the electronic device may include a processor 510, a communication interface 520, a memory 530, and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other via the communication bus 540. The processor 510 can call logical instructions in the memory 530 to execute the following methods: dividing the mold into multiple mesh cells; further dividing the mesh cells to obtain an interference mesh and a complete mesh based on whether the mesh cells interfere with interference components of the mold; determining the sensor's mounting position on the mold and the sensor cable's lead-out position on the mold; determining a starting mesh in the mesh cells corresponding to the mounting position and a ending mesh in the complete mesh corresponding to the lead-out position; avoiding the interference mesh and connecting the complete mesh in series to obtain the cable routing path, wherein the routing path connects the starting mesh and the ending mesh.
[0102] Furthermore, the logical instructions in the aforementioned memory 530 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to related technologies, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0103] On the other hand, embodiments of the present invention disclose a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions, and when the program instructions are executed by a computer, the computer can execute the methods provided in the above-described method embodiments, such as: dividing a mold into multiple grid cells; further dividing the grid cells; dividing the grid cells into interference grids and complete grids based on whether the grid cells interfere with interference components of the mold; determining the placement position of a sensor on the mold and the lead-out position of the sensor cable on the mold; determining a starting grid in the grid cells corresponding to the placement position, and determining a terminating grid in the complete grid corresponding to the lead-out position; avoiding the interference grids and connecting the complete grids in series to obtain the wiring path of the cable, wherein the wiring path connects the starting grid and the terminating grid.
[0104] In another aspect, embodiments of the present invention also provide a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the methods provided in the above embodiments, including, for example,: dividing a mold into multiple grid cells; further dividing the grid cells; and dividing the grid cells into interference grids and complete grids based on whether the grid cells interfere with interference components of the mold; determining the placement position of a sensor on the mold and the lead-out position of the sensor cable on the mold; determining a starting grid in the grid cells corresponding to the placement position, and determining a terminating grid in the complete grid corresponding to the lead-out position; avoiding the interference grids and connecting the complete grids in series to obtain a wiring path for the cable, wherein the wiring path connects the starting grid and the terminating grid.
[0105] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0106] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of software products. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or some parts of embodiments.
[0107] Finally, it should be noted that the above embodiments are only for illustrating the present invention and not for limiting the present invention. Although the present invention has been described in detail with reference to the embodiments, those skilled in the art should understand that various combinations, modifications, or equivalent substitutions of the technical solutions of the present invention do not depart from the spirit and scope of the technical solutions of the present invention and should be covered within the scope of the claims of the present invention.
Claims
1. An automatic wiring method for sensors in a mold, characterized in that, include: The mold is divided into multiple mesh units. The mesh units are further divided, and interference meshes and complete meshes are obtained by determining whether the mesh units interfere with the interference components of the mold. The mold is divided into hexahedral meshes, and the size of the hexahedral mesh is determined by the cross-sectional size of the cable to be laid. Determine the sensor's mounting position on the mold and the position where the sensor's cable exits from the mold; In the grid cell, a starting grid corresponding to the setting position is determined, and in the complete grid, a termination grid corresponding to the lead-out position is determined; By avoiding the interference grid and connecting the complete grids in series, the wiring path of the cable is obtained, including determining the direction of the wiring path by the position of the terminating grid relative to the starting grid; the complete grid includes a first grid with adjacent complete grids along the direction and a second grid without adjacent complete grids along the direction, and connecting the first grid to form the wiring path; The wiring path connects the starting grid and the ending grid, and the cable is arranged along the center line of the grid cell.
2. The automatic wiring method for sensors in a mold according to claim 1, characterized in that, The process of avoiding the interference grid and concatenating the complete grid to obtain the cable routing path includes: The wiring path is formed in a rectangular area with the line connecting the starting grid and the ending grid as its diagonal.
3. The automatic wiring method for sensors in a mold according to claim 1, characterized in that, The process of avoiding the interference grid and concatenating the complete grid to obtain the cable routing path includes: A pre-selected path is formed by connecting multiple wiring segments, wherein the included angle between adjacent wiring segments is not less than 90 degrees; From all the pre-selected paths, select the pre-selected path with the fewest or shortest number of cabling segments as the cabling path.
4. The automatic wiring method for sensors in a mold according to claim 3, characterized in that, Selecting the pre-selected path with the fewest or shortest number of cabling segments from all the pre-selected paths as the cabling path includes: The corner positions of the selected pre-selected path are smoothed to obtain the wiring path.
5. The automatic wiring method for sensors of a mold according to any one of claims 1 to 4, characterized in that, The step of determining the starting grid corresponding to the setting position in the grid cell and determining the ending grid corresponding to the exit position in the complete grid includes: Multiple complete grids located at the edges are determined as candidate grids based on the aforementioned lead-out positions; The candidate grid is divided into a first type of grid and a second type of grid. If the number of complete grids adjacent to the candidate grid in the direction of the starting grid is 2, then the candidate grid is a first type of grid; otherwise, it is a second type of grid. Select the termination grid from the first type of grid.
6. The automatic wiring method for sensors of a mold according to any one of claims 1 to 4, characterized in that, The step of determining the starting grid corresponding to the setting position in the grid cell and the ending grid corresponding to the exit position in the complete grid further includes: The aforementioned lead-out positions determine multiple grid cells located at the edges as candidate grids; If, by avoiding the interference grid and concatenating the complete grid, a wiring path connecting the starting grid and the current candidate grid cannot be obtained, then the termination grid is determined from other candidate grids.
7. The automatic wiring method for sensors of a mold according to any one of claims 1 to 4, characterized in that, The further subdivision of the mesh cells, based on whether the mesh cells interfere with the interference components of the mold, yields interference meshes and complete meshes, including: The type of mesh element is determined to be either an interference mesh or a complete mesh by the surface area, mesh size, minimum angle, maximum angle, aspect ratio, boundary fitting, or mesh distortion of the mesh element.
8. An automatic wiring device for sensors in a mold, characterized in that, include: The meshing module is used to divide the mold into multiple mesh units. The mesh units are further divided by whether the mesh units interfere with the interference components of the mold to obtain interference meshes and complete meshes. The mold is divided into hexahedral meshes, and the size of the hexahedral mesh is determined by the cross-sectional size of the cable to be laid. A positioning module is used to determine the setting position of the sensor on the mold and the lead-out position of the sensor cable on the mold; The determining module is used to determine the starting grid corresponding to the setting position in the grid cell, and to determine the ending grid corresponding to the lead-out position in the complete grid; A generation module is used to avoid the interference grid and connect the complete grids to obtain the wiring path of the cable. This includes determining the direction of the wiring path based on the position of the terminating grid relative to the starting grid. The complete grid includes a first grid with adjacent complete grids along the direction and a second grid without adjacent complete grids along the direction. The first grid is connected to form the wiring path. The wiring path connects the starting grid and the terminating grid, and the cable is set along the centerline of the grid cell.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the automatic wiring method for the sensor of the mold as described in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the automatic wiring method for the sensors of the mold as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Harness wiring path calculation method, and harness wiring path design support apparatus and program
JP2009176616A
Mold and hot runner controller located on the machine platen
US20040258787A1
