Address allocation method and device, transmission line body, storage medium and program product
By determining the starting component in the line drawing of the magnetic levitation conveying line body and automatically allocating the continuous base address, the problems of low efficiency and error-prone allocation of the base address of the stator component in the prior art are solved, and more efficient and accurate base address management is achieved .
Patent Information
- Application Number
- CN202411634717.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-01-07
AI Technical Summary
The base address allocation of stator components in existing magnetic levitation conveying lines mainly relies on manual operations, resulting in low efficiency, error-proneness, and wasting time and human resources.
After the line drawing of the conveying line body is constructed, the starting point component of the moving component is determined from the sketch, and the base addresses of multiple stator components are automatically allocated according to the starting point component, making it continuous, and the continuity in the address allocation list is adopted. The base address sequence is allocated to ensure the continuity and consistency of the base address.
It improves the efficiency and accuracy of base address allocation of stator components, saves manpower and time resources, and ensures the continuity and consistency of base address.
Smart Images

Figure CN119262849A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of magnetic levitation transportation technology, and more specifically, to an address allocation method, device, conveying line, computer-readable storage medium and computer program product in the field of magnetic levitation transportation technology. Background Art
[0002] In automated production lines, magnetic levitation conveyors are a common device used to carry and transport objects. The existing method of allocating base addresses of stator components in magnetic levitation conveyors is mainly performed manually by designers, which is not only time-consuming and labor-intensive, but also prone to errors. For example, when designers change or adjust the layout of the stator components of the conveyor, they need to manually modify all related stator base addresses, which not only wastes time and human resources, but also easily leads to confusion or errors. Summary of the invention
[0003] The present application provides an address allocation method, device, conveyor line body, computer-readable storage medium and computer program product. The present application not only improves the efficiency and accuracy of base address allocation of stator components in the conveyor line body, but also saves human resources and time resources.
[0004] In a first aspect, an address allocation method is provided, which is applied to a conveyor line body, and the address allocation method comprises: when a line body sketch of the conveyor line body is constructed, determining a starting point component for a moving part to move along the conveyor line body from the line body sketch; wherein the conveyor line body comprises a plurality of stator components, the starting point component is any one of the plurality of stator components, and the moving part moves along the stator component; and allocating base addresses to the plurality of stator components according to the starting point component so that the base addresses of the plurality of stator components have continuity.
[0005] In the above technical scheme, the embodiment of the present application adopts a technical scheme in which, after the line sketch of the conveyor line is constructed, the starting point component of the moving part moving along the conveyor line is determined from the line sketch, and base addresses are allocated to multiple stator components according to the starting point component so that the base addresses of the multiple stator components have continuity. This realizes the automatic allocation of base addresses of stator components in the conveyor line and can ensure the continuity of the base addresses, which not only improves the efficiency and accuracy of the base address allocation of stator components in the conveyor line, but also saves human resources and time resources.
[0006] In a possible implementation, determining the starting point component of the moving part moving along the conveying line from the line sketch includes at least one of the following schemes: determining the first stator component or the last stator component placed in the sketch building interface of the line sketch as the starting point component; when the line sketch is constructed, determining the first selected stator component among the multiple stator components as the starting point component.
[0007] In one possible implementation, assigning base addresses to the multiple stator components according to the starting point component includes: using the first base address in the address assignment list as the base address of the starting point component; wherein the address assignment list includes multiple consecutive base addresses; and assigning the other base addresses in the address assignment list except the first base address to the other stator components among the multiple stator components except the starting point component in sequence according to the order of the base addresses in the address assignment list.
[0008] In a possible implementation, the address allocation method also includes: when there is a first target component among the multiple stator components, according to the arrangement order of the multiple stator components, the base address of the stator component before the first target component is kept unchanged, and the base address of the stator component after the first target component is re-modified to make the base addresses of the other stator components among the multiple stator components except the first target component have continuity; wherein, the first target component is a stator component that is deleted from the multiple stator components of the conveyor line body.
[0009] In a possible implementation, the address allocation method further includes: when there is a second target component, using the base address of a stator component located after the second target component among the multiple stator components and the second target components as the base address of the second target component, and so on, so that the base address of the subsequent stator component replaces the base address of the previous stator component, and finally using the next base address of the base address of the third target component as the base address of the fourth target component to maintain the continuity of the base addresses of the multiple stator components and the second target component; wherein the second target component is a newly added stator component, the third target component is the last stator component among the multiple stator components, and the fourth target component is the last stator component among the multiple stator components and the third target component.
[0010] In a possible implementation, the number of the multiple stator assemblies is M, and there is a spacing between two adjacent stator assemblies among the M stator assemblies constituting the conveyor line body, M≥2; the allocation of base addresses to the multiple stator assemblies according to the starting point component includes: using a preset base address as the base address of the first stator assembly among the M stator assemblies constituting the conveyor line body, and adding the base address of the i-th stator assembly among the M stator assemblies constituting the conveyor line body plus the sum of the spacing as the base address of the i+1-th stator assembly, so that the base addresses of the M stator assemblies constituting the conveyor line body have continuity; wherein the first stator assembly is the starting point assembly, and the i-th stator assembly and the i+1-th stator assembly are adjacent stator assemblies to each other, 1<i≤M.
[0011] In a possible implementation, after allocating base addresses to the multiple stator components according to the starting point component, the address allocation method further includes: when the spacing between the jth stator component and the j+1th stator component among the M stator components constituting the conveyor line body changes, obtaining a change in the spacing; wherein j≤M; keeping the base addresses of the jth stator component and the stator components before the jth stator component unchanged, and updating the base addresses of the j+1th stator component and the stator components after the j+1th stator component according to the change, so that the base addresses of the M stator components constituting the conveyor line body have continuity.
[0012] In one possible implementation, updating the base address of the j+1th stator component and the stator component after the j+1th stator component according to the change includes: if the change is an increase in spacing, increasing the base address of the j+1th stator component and the stator component after the j+1th stator component by the increase in spacing; if the change is a decrease in spacing, decreasing the base address of the j+1th stator component and the stator component after the j+1th stator component by the decrease in spacing.
[0013] In a second aspect, an address allocation device is provided, which is configured on a conveyor line body, and the address allocation device comprises:
[0014] A component determination module is used to determine, when the line body sketch of the conveyor line body is constructed, a starting point component for the moving part to move along the conveyor line body from the line body sketch; wherein the conveyor line body includes a plurality of stator components, the starting point component is any one of the plurality of stator components, and the moving part moves along the stator component;
[0015] The address allocation module is used to allocate base addresses to the multiple stator components according to the starting point component, so that the base addresses of the multiple stator components have continuity.
[0016] In one possible implementation, the component determination module is specifically used to determine the first stator component or the last stator component placed in the sketch building interface of the line sketch as the starting component; or, when the line sketch is completed, determine the first selected stator component among the multiple stator components as the starting component.
[0017] In a possible implementation, the address allocation module includes:
[0018] A first allocation unit is used to use the first base address in the address allocation list as the base address of the starting point component; wherein the address allocation list includes multiple consecutive base addresses; according to the order of the base addresses in the address allocation list, the other base addresses in the address allocation list except the first base address are sequentially allocated to the other stator components among the multiple stator components except the starting point component.
[0019] In a possible implementation, the address allocation device further includes:
[0020] The first address updating unit is used to keep the base address of the stator components before the first target component unchanged and re-modify the base address of the stator components after the first target component in accordance with the arrangement order of the multiple stator components when there is a first target component among the multiple stator components, so that the base addresses of the other stator components among the multiple stator components except the first target component have continuity; wherein, the first target component is a stator component deleted from the multiple stator components of the conveyor line body.
[0021] In a possible implementation, the address allocation device further includes:
[0022] The second address updating unit is used for, when there is a second target component, using the base address of a stator component located after the second target component among the multiple stator components and the second target components as the base address of the second target component, and so on, so that the base address of the subsequent stator component replaces the base address of the previous stator component, and finally using the next base address of the base address of the third target component as the base address of the fourth target component to maintain the continuity of the base addresses of the multiple stator components and the second target component; wherein, the second target component is a newly added stator component, the third target component is the last stator component among the multiple stator components, and the fourth target component is the last stator component among the multiple stator components and the third target component.
[0023] In a possible implementation, the number of the plurality of stator assemblies is M, and there is a spacing between two adjacent stator assemblies among the M stator assemblies constituting the conveyor line body, M≥2, and the address allocation module includes:
[0024] The second allocation unit is used to use the preset base address as the base address of the first stator component among the M stator components constituting the conveyor line body, and to use the base address of the i-th stator component among the M stator components constituting the conveyor line body plus the sum of the spacing as the base address of the i+1-th stator component, so that the base addresses of the M stator components constituting the conveyor line body have continuity; wherein the first stator component is the starting point component, the i-th stator component and the i+1-th stator component are adjacent stator components, and 1<i≤M.
[0025] In a possible implementation, the address allocation device further includes:
[0026] The third address updating unit is used to obtain the change in the spacing between the jth stator component and the j+1th stator component among the M stator components constituting the conveyor line body when the spacing between the jth stator component and the j+1th stator component changes; wherein j≤M; the base address of the jth stator component and the stator components before the jth stator component is kept unchanged, and the base address of the j+1th stator component and the stator components after the j+1th stator component is updated according to the change, so that the base addresses of the M stator components constituting the conveyor line body have continuity.
[0027] In one possible implementation, the third address updating unit is used to update the base address of the j+1th stator component and the stator component after the j+1th stator component according to the change amount, specifically for increasing the base address of the j+1th stator component and the stator component after the j+1th stator component by the increase in spacing if the change amount is an increase in spacing; and reducing the base address of the j+1th stator component and the stator component after the j+1th stator component by the decrease in spacing if the change amount is a decrease in spacing.
[0028] In a third aspect, a conveyor line body is provided, comprising a memory and a processor. The memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, so that the conveyor line body executes the address allocation method in the first aspect or any possible implementation of the first aspect.
[0029] In a fourth aspect, a computer program product is provided, which includes: a computer program code, which, when executed on a computer, enables the computer to execute the address allocation method in the first aspect or any possible implementation of the first aspect.
[0030] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the address allocation method in the above-mentioned first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A schematic flow chart of an address allocation method provided in an embodiment of the present application is shown;
[0032] Figure 2 An exemplary schematic diagram showing a line body sketch of a conveying line body is shown;
[0033] Figure 3 Another exemplary schematic diagram showing a line body sketch of a conveying line body;
[0034] Figure 4 An exemplary schematic diagram of assigning base addresses to stator components in a conveyor line body is shown;
[0035] Figure 5 A schematic diagram showing the allocation of base addresses for stator components in a conveyor line body after shortening the length is shown;
[0036] Figure 6 A schematic diagram showing the allocation of base addresses for stator components in a conveyor line body after the length is extended is shown;
[0037] Figure 7 Another exemplary schematic diagram showing a line body sketch of a conveying line body;
[0038] Figure 8 A schematic diagram of the structure of an address allocation device provided in an embodiment of the present application is shown;
[0039] Fig. 9 A schematic structural diagram of a conveyor line body provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0040] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0041] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0042] In automated production lines, magnetic levitation conveyors are a common device used to carry and transport objects. The existing method of allocating base addresses of stator components in magnetic levitation conveyors is mainly performed manually by designers, which is not only time-consuming and labor-intensive, but also prone to errors. For example, when designers change or adjust the layout of the stator components of the conveyor, they need to manually modify all related stator base addresses, which not only wastes time and human resources, but also easily leads to confusion or errors.
[0043] Based on the above problems, the present application provides an address allocation method, device, conveyor line body, computer-readable storage medium and computer program product. The present application can realize the automatic allocation of base addresses of stator components in the conveyor line body and ensure the continuity of the base addresses, which not only improves the efficiency and accuracy of the base address allocation of stator components in the conveyor line body, but also saves human resources and time resources.
[0044] The following is an embodiment of an address allocation method provided in an embodiment of the present application.
[0045] Figure 1 A schematic flow chart of an address allocation method provided in an embodiment of the present application is shown, such as Figure 1 As shown, the address allocation method provided in the embodiment of the present application is applied to a conveyor line body, which includes a plurality of stator assemblies and a plurality of moving parts, and the moving parts move along the stator assemblies. The moving parts are, for example, movable subassemblies, and the stator assembly is used to drive the movable subassembly by magnetic coupling so that the movable subassembly moves along the stator assembly.
[0046] The above-mentioned address allocation method includes the following schemes:
[0047] S110: When the line body sketch of the conveyor line body is constructed, the starting point component of the moving part moving along the conveyor line body is determined from the line body sketch.
[0048] In an exemplary embodiment, the conveyor line body includes a host computer, which is equipped with a conveyor line body construction tool. The line body sketch of the conveyor line body is designed by the designer through the conveyor line body construction tool. The line body sketch of the conveyor line body presents the entity type of the conveyor line body in reality. The line body sketch of the conveyor line body presents the stator assembly, and no moving parts. The entity types of the conveyor line body include single-line body type and multi-line body type. The single-line body type of conveyor line body has one moving path for the moving parts, and the multi-line body type of conveyor line body has two or more moving paths for the moving parts. The single-line body type includes a straight line type, a ring type, etc., and the multi-line body type includes a "cross" type, a "sun" type, etc. Figure 2 As shown, Figure 2 An exemplary schematic diagram showing a line body sketch of a conveying line body is shown, Figure 2 Figure 2-1 shows a ring-shaped conveyor line body, and 210-219 are stator components. Figure 2 Figure 2-2 shows a "cross" shaped conveyor line body, and 221-235 are all stator components.
[0049] When the line sketch of the conveyor line is completed, the starting point component of the moving part moving along the conveyor line is determined from the line sketch. The starting point component can be understood as the starting point of the conveyor line, or as a stator component specified by the designer. If the conveyor line includes a moving part, the first stator component passed by the moving part is the starting point component, that is, the starting point component is any one of the multiple stator components.
[0050] like Figure 3 As shown, Figure 3 Another exemplary schematic diagram showing a line body sketch of a conveying line body, Figure 3 The conveyor line shown is composed of stator components 30 to 34. For example, the starting component for the movement of the moving part along the conveyor line is determined to be the stator component 30 from the line sketch.
[0051] In a possible implementation, the above-mentioned component for determining the starting point of the moving part moving along the conveying line from the line sketch includes at least one of the following solutions:
[0052] The first stator component or the last stator component placed in the sketch building interface of the linear sketch is determined as the starting component;
[0053] When the linear sketch is constructed, the first stator component selected from the multiple stator components is determined as the starting point component.
[0054] It can be understood that corresponding determination rules can be set for determining the starting point component. For example, the first stator component placed in the sketch building interface of the line sketch is determined as the starting point component, that is, the first stator component placed can be regarded as the starting point of the conveyor line body. This determination rule of the starting point component does not need to distinguish the type of conveyor line body.
[0055] The last stator component placed in the sketch building interface of the line sketch can also be determined as the starting point component. The placement of the last stator component can be understood as the completion of the construction of the conveyor line body. The first stator component and the last stator component in the conveyor line body to which this starting point component determination rule applies are adjacent stator components to each other, and the type of this conveyor line body is annular.
[0056] When the line sketch is completed, the first stator component selected by the designer among multiple stator components can be determined as the starting component. The rule for determining the starting component does not need to distinguish the type of conveyor line body. The specific stator component to be selected is decided by the designer.
[0057] S120: Allocating base addresses to the plurality of stator components according to the starting point component, so that the base addresses of the plurality of stator components have continuity.
[0058] After the starting component is determined, the order of multiple stator components in the line sketch is obtained, that is, the starting component is the first stator component, the next stator component of the starting component is the second stator component, and so on. Figure 3 As shown, it is assumed that the starting component is stator component 30, stator component 30 is the first stator component, stator component 31 is the second stator component, stator component 32 is the third stator component, stator component 33 is the fourth stator component, and stator component 34 is the fifth stator component.
[0059] According to the base address calculation formula, the base addresses of the stator components other than the first stator component are set. The base address of the first stator component can be a fixed base address, a randomly generated base address, or a base address set in other ways. The base address calculation formula is as follows:
[0060] The base address of the s+1 stator assembly = the base address of the s stator assembly + k;
[0061] Wherein, s and k are both positive integers greater than or equal to 1.
[0062] like Figure 4 As shown, Figure 4An exemplary schematic diagram of allocating base addresses to stator assemblies in a conveyor line is shown. For example, stator assemblies 30 to 34 correspond to the first stator assembly to the fifth stator assembly, and the base address of the first stator assembly is 0x0000. Then, the base addresses of the first stator assembly to the fifth stator assembly are 0x0000, 0x0001, 0x0002, 0x0003, and 0x0004, respectively, and these five base addresses are continuous.
[0063] The embodiment of the present application adopts a technical solution in which, after the line sketch of the conveyor line is constructed, the starting point component of the movement of the moving part along the conveyor line is determined from the line sketch, and base addresses are allocated to multiple stator components according to the starting point component so that the base addresses of the multiple stator components have continuity. This realizes automatic allocation of base addresses of stator components in the conveyor line and can ensure the continuity of the base addresses, which not only improves the efficiency and accuracy of base address allocation of stator components in the conveyor line, but also saves human and time resources.
[0064] In a possible implementation, the above-mentioned allocation of base addresses to multiple stator components according to the starting point component includes the following schemes:
[0065] The first base address in the address allocation list is used as the base address of the starting point component; wherein the address allocation list includes multiple consecutive base addresses;
[0066] According to the base address sequence in the address allocation list, other base addresses except the first base address in the address allocation list are sequentially allocated to other stator components except the starting point component in the plurality of stator components.
[0067] A plurality of address allocation lists are set in advance, each address allocation list includes a plurality of continuous base addresses, the address quantities of the base addresses in any two address allocation lists are different, and the base addresses in any two address allocation lists have no intersection.
[0068] After the line sketch of the conveyor line body is constructed, the number of components of the multiple stator components constituting the conveyor line body can be obtained through the line sketch, and then an address allocation list with the number of addresses equal to the number of components is selected from the multiple address allocation lists as the target address allocation list, and then the first base address in the target address allocation list is used as the base address of the starting component, and then, according to the base address order in the target address allocation list, the other base addresses in the target address allocation list except the first base address are sequentially allocated to the other stator components except the starting component in the multiple stator components. For example, if the number of components of the multiple stator components constituting the conveyor line body is 5, then an address allocation list including 5 base addresses is selected from the multiple address allocation lists as the target address allocation list, and the base addresses in the target address allocation list are 0x0000, 0x0001, 0x0002, 0x0003, and 0x0004, respectively. According to the above rules, the base addresses are sequentially allocated to the 5 stator components. The schematic diagram of the 5 stator components after the base addresses are allocated is as shown in the figure. Figure 4 By using an address allocation list to allocate base addresses to multiple stator components constituting the transmission line body, not only the accuracy of base address allocation can be ensured, but also the efficiency of base address allocation can be improved.
[0069] In a possible implementation, the more components that constitute the stator assembly of the conveyor line body, the longer the length of the conveyor line body, and vice versa, the fewer components that constitute the stator assembly of the conveyor line body, the shorter the length of the conveyor line body. After the line body sketch of the conveyor line body is constructed, if the designer needs to delete some of the multiple stator assemblies that constitute the conveyor line body to shorten the length of the conveyor line body, in order to ensure the continuity of the base addresses of the stator assemblies that constitute the conveyor line body, the length of the conveyor line body is shortened, and the continuity of the base addresses of the stator assemblies that constitute the conveyor line body is maintained, including the following solutions:
[0070] When there is a first target component among multiple stator components, the base address of the stator component before the first target component is kept unchanged according to the arrangement order of the multiple stator components, and the base address of the stator component after the first target component is re-modified to make the base addresses of the other stator components among the multiple stator components except the first target component have continuity; wherein the first target component is the stator component deleted from the multiple stator components of the conveyor line body.
[0071] like Figure 3-Figure 5 As shown, Figure 5A schematic diagram of allocating base addresses to stator components in a conveyor line body after its length is shortened is shown, where L1 represents the original conveyor line body and L2 represents the conveyor line body after its length is shortened. Assuming that the first target component existing in the stator components 30-34 constituting the conveyor line body is stator component 32, "×" indicates the deleted stator component, that is, stator component 32 is deleted, then the base addresses of the first stator component (stator component 30) and the second stator component (stator component 31) in the original conveyor line body remain unchanged, the base address of the fourth stator component (stator component 33) in the original conveyor line body becomes the base address of the third stator component (stator component 32) in the conveyor line body after the length is shortened, and the base address of the fifth stator component (stator component 34) in the original conveyor line body becomes the base address of the fourth stator component (stator component 33) in the conveyor line body after the length is shortened. The base addresses of the first stator component-the fourth stator component in the conveyor line body after the length is shortened are 0x0000, 0x0001, 0x0002, and 0x0003, respectively.
[0072] In a possible implementation, after the line body sketch of the conveyor line body is constructed, if the designer needs to add an additional stator component to the multiple stator components constituting the conveyor line body to lengthen the length of the conveyor line body, in order to ensure the continuity of the base addresses of the stator components constituting the conveyor line body, the length of the conveyor line body is lengthened, and the continuity of the base addresses of the stator components constituting the conveyor line body is maintained, including the following solutions:
[0073] When there is a second target component, the base address of a stator component located after the second target component among the multiple stator components and the second target component is used as the base address of the second target component, and so on, so that the base address of the subsequent stator component replaces the base address of the previous stator component, and finally the next base address of the base address of the third target component is used as the base address of the fourth target component to maintain the continuity of the base addresses of the multiple stator components and the second target component; wherein the second target component is a newly added stator component, the third target component is the last stator component among the multiple stator components, and the fourth target component is the last stator component among the multiple stator components and the third target component.
[0074] like Figure 3 , Figure 4 and Figure 6 As shown, Figure 6 A schematic diagram of allocating base addresses to stator assemblies in a conveyor line body after lengthening is shown, where L3 represents the original conveyor line body and L4 represents the conveyor line body after lengthening. Figure 6The “+” in the figure indicates the second target component, i.e. the newly added stator component. The second target component is located between the third stator component (stator component 32) and the fourth stator component (stator component 33) in the original conveyor line body, i.e. the fourth stator component (stator component 33) in the conveyor line body after the lengthening. The fifth stator component (stator component 34) in the conveyor line body after the lengthening is the fourth stator component (stator component 33) in the original conveyor line body, and the sixth stator component (stator component 35) in the conveyor line body after the lengthening is the fifth stator component (stator component 34) in the original conveyor line body. The third target component is the fifth stator component (34) in the original conveyor line body, i.e. the last stator component, and the fourth target component is the sixth stator component (stator component 35) in the conveyor line body after the lengthening.
[0075] After the second target component is newly added between the third stator component (stator component 32) and the fourth stator component (stator component 33) in the original conveyor line body, the base address of the first stator component (stator component 30)-the third stator component (stator component 32) in the original conveyor line body remains unchanged, and the base address of the fourth stator component (stator component 33) in the original conveyor line body becomes the base address of the fourth stator component (stator component 33, which is also the second target component) in the extended conveyor line body, and the base address of the fifth stator component ( The base address of the first stator assembly (stator assembly 34) becomes the base address of the fifth stator assembly (stator assembly 34) in the conveyor line body after the length is extended, and the next base address of the base address of the fifth stator assembly (stator assembly 34) in the original conveyor line body becomes the base address of the sixth stator assembly (stator assembly 36) in the conveyor line body after the length is extended, that is, the base addresses of the first stator assembly to the sixth stator assembly in the conveyor line body after the length is extended are 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, and 0x0005, respectively.
[0076] In a possible implementation, the number of the plurality of stator assemblies constituting the conveyor line body is M, M≥2, and there is a spacing between any two adjacent stator assemblies in the M stator assemblies constituting the conveyor line body, represented by Dx, where x is greater than or equal to 1. Figure 7 As shown, Figure 7Another exemplary schematic diagram of a line body sketch of a conveyor line body is shown, the number of stator assemblies constituting the conveyor line body is M=5, the conveyor line body is composed of stator assemblies 30-34, D1 represents the spacing between the first stator assembly (stator assembly 31) and the second stator assembly (stator assembly 31), D2 represents the spacing between the second stator assembly (stator assembly 31) and the third stator assembly (stator assembly 32), and so on. Among them, D1-D4 are all different, or at least 2 values of D1-D4 are the same.
[0077] The above-mentioned allocation of base addresses to multiple stator components according to the starting point component includes the following schemes:
[0078] The preset base address is used as the base address of the first stator component among the M stator components constituting the conveyor line body, and the base address of the i-th stator component among the M stator components constituting the conveyor line body plus the sum of the spacing is used as the base address of the i+1-th stator component, so that the base addresses of the M stator components constituting the conveyor line body have continuity; wherein the first stator component is the starting point component, the i-th stator component and the i+1-th stator component are adjacent stator components, and 1<i≤M.
[0079] like Figure 7 As shown, M = 5, Figure 7 The first stator assembly to the fifth stator assembly constituting the conveyor line body are shown as stator assembly 30 to stator assembly 34. Assuming that D1=D2=D3=D4=2, the unit of the spacing is millimeter, the base address of each stator assembly can be obtained by the formula (1) for calculating the base address based on the spacing. The formula (1) for calculating the base address based on the spacing is as follows:
[0080] The base address of the i+1th stator assembly=the base address of the ith stator assembly+Dx.
[0081] For example, the preset base address is 0x0000, that is, the base address of stator component 30 is 0x0000, the base address of stator component 31 is (0x0000+2)=0x0002, the base address of stator component 32 is (0x0002+2)=0x0004, the base address of stator component 33 is (0x0004+2)=0x0006, and the base address of stator component 34 is (0x0006+2)=0x0008, that is, the base addresses of stator component 30-stator component 34 are continuous.
[0082] In a possible implementation, after allocating base addresses to the plurality of stator components according to the starting point components, the address allocation method further includes:
[0083] When the spacing between the j-th stator assembly and the j+1-th stator assembly among the M stator assemblies constituting the conveyor line body changes, the change amount of the spacing is obtained; wherein j≤M;
[0084] Keep the base address of the j-th stator assembly and the stator assembly before the j-th stator assembly unchanged, and update the base address of the j+1-th stator assembly and the stator assembly after the j+1-th stator assembly according to the change amount, so that the base addresses of the M stator assemblies constituting the conveyor line body have continuity.
[0085] In the case where there is a spacing between any two adjacent stator assemblies among the M stator assemblies constituting the conveyor line body, if the designer changes the spacing between any two adjacent stator assemblies among the M stator assemblies, thereby causing the spacing between any two adjacent stator assemblies to change, the change in spacing is obtained from the line body sketch, and the change in spacing includes the increase in spacing or the decrease in spacing, that is, the designer may have shortened the spacing between the two stator assemblies, or may have increased the spacing between the two stator assemblies. For example, when the spacing between the jth stator assembly and the j+1th stator assembly among the M stator assemblies changes, the base address of the stator assembly before the jth stator assembly and the jth stator assembly will not change due to the change in the spacing between the jth stator assembly and the j+1th stator assembly, and the base address of the stator assembly after the j+1th stator assembly and the j+1th stator assembly will change due to the change in the spacing between the jth stator assembly and the j+1th stator assembly. For example, Figure 7 If D2 changes, the base addresses of stator components 30 and 31 will not change due to the change in D2, but the base addresses of stator components 32 to 34 will change due to the change in D2.
[0086] Since the spacing between the jth stator assembly and the j+1th stator assembly has changed, the updating process of the base addresses of the M stator assemblies is as follows: keeping the base addresses of the jth stator assembly and the stator assembly before the jth stator assembly unchanged, and updating the base addresses of the j+1th stator assembly and the stator assembly after the j+1th stator assembly according to the change amount, so that the base addresses of the M stator assemblies constituting the conveyor line body have continuity, that is, the base addresses of the M stator assemblies after the update still maintain continuity.
[0087] In a possible implementation, the above-mentioned updating of the base address of the stator component after the j+1 stator component and the j+1 stator component according to the change amount includes:
[0088] If the change amount is the spacing increase amount, the base addresses of the j+1 stator assembly and the stator assembly after the j+1 stator assembly are increased by the spacing increase amount;
[0089] If the change amount is the pitch reduction amount, the base addresses of the j+1 stator assembly and the stator assembly after the j+1 stator assembly are reduced by the pitch reduction amount.
[0090] If the change is the spacing increase, the spacing increase is expressed as bz, and the base address of each stator component can be obtained by the formula (2) for calculating the base address based on the spacing increase. The formula (2) for calculating the base address based on the spacing increase is as follows:
[0091] The new base address of the i-th stator assembly = the original base address of the i-th stator assembly + bz.
[0092] like Figure 7 As shown, D2 has changed, and the change amount of D2 is the spacing increase amount bz, and bz = 1. Before D2 is increased, the base addresses of stator assembly 30-stator assembly 34 are respectively: 0x0000, 0x0002, 0x0004, 0x0006, 0x0008. After D2 is increased, the base addresses of stator assembly 30-stator assembly 34 are respectively: 0x0000, 0x0002, 0x0005, 0x0007, 0x0009.
[0093] If the change is the pitch reduction, the pitch reduction is represented by bj, and the base address of each stator component can be obtained by the formula (3) for calculating the base address based on the pitch reduction. The formula (3) for calculating the base address based on the pitch reduction is as follows:
[0094] The new base address of the i-th stator assembly = the original base address of the i-th stator assembly - bj.
[0095] like Figure 7 As shown, D2 has changed, and the change in D2 is the spacing reduction amount bj, and bj=1. Before D2 is reduced, the base addresses of stator assembly 30-stator assembly 34 are: 0x0000, 0x0002, 0x0004, 0x0006, 0x0008. After D2 increases, the base addresses of stator assembly 30-stator assembly 34 are: 0x0000, 0x0002, 0x0003, 0x0005, 0x0007, thereby realizing automatic updating of the base address of each stator assembly in the conveyor line body according to the spacing change between the stator assemblies in the conveyor line body, avoiding the shutdown or reset of the conveyor line body due to local changes, and improving the adaptability and reliability of the conveyor line body.
[0096] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0097] Figure 8A schematic diagram of the structure of an address allocation device provided in an embodiment of the present application is shown. Figure 8 As shown, the address distribution device 800 is configured on the conveyor line body and includes:
[0098] The component determination module 810 is used to determine the starting component of the moving part moving along the conveying line body from the line body sketch when the line body sketch of the conveying line body is constructed; wherein the conveying line body includes a plurality of stator components, the starting component is any one of the plurality of stator components, and the moving part moves along the stator component;
[0099] The address allocation module 820 is used to allocate base addresses to the multiple stator components according to the starting point component, so that the base addresses of the multiple stator components have continuity.
[0100] In one possible implementation, the component determination module 810 is specifically used to determine the first stator component or the last stator component placed in the sketch building interface of the line sketch as the starting component; or, when the line sketch is constructed, determine the first selected stator component among the multiple stator components as the starting component.
[0101] In a possible implementation, the address allocation module 820 includes:
[0102] A first allocation unit is used to use the first base address in the address allocation list as the base address of the starting point component; wherein the address allocation list includes multiple consecutive base addresses; according to the order of the base addresses in the address allocation list, the other base addresses in the address allocation list except the first base address are sequentially allocated to the other stator components among the multiple stator components except the starting point component.
[0103] In a possible implementation, the address allocation device 800 further includes:
[0104] The first address updating unit is used to keep the base address of the stator components before the first target component unchanged and re-modify the base address of the stator components after the first target component in accordance with the arrangement order of the multiple stator components when there is a first target component among the multiple stator components, so that the base addresses of the other stator components among the multiple stator components except the first target component have continuity; wherein, the first target component is a stator component deleted from the multiple stator components of the conveyor line body.
[0105] In a possible implementation, the address allocation device 800 further includes:
[0106] The second address updating unit is used for, when there is a second target component, using the base address of a stator component located after the second target component among the multiple stator components and the second target components as the base address of the second target component, and so on, so that the base address of the subsequent stator component replaces the base address of the previous stator component, and finally using the next base address of the base address of the third target component as the base address of the fourth target component to maintain the continuity of the base addresses of the multiple stator components and the second target component; wherein, the second target component is a newly added stator component, the third target component is the last stator component among the multiple stator components, and the fourth target component is the last stator component among the multiple stator components and the third target component.
[0107] In a possible implementation, the number of the plurality of stator assemblies is M, and there is a spacing between two adjacent stator assemblies among the M stator assemblies constituting the conveyor line body, M≥2, and the address allocation module 820 includes:
[0108] The second allocation unit is used to use the preset base address as the base address of the first stator component among the M stator components constituting the conveyor line body, and to use the base address of the i-th stator component among the M stator components constituting the conveyor line body plus the sum of the spacing as the base address of the i+1-th stator component, so that the base addresses of the M stator components constituting the conveyor line body have continuity; wherein the first stator component is the starting point component, the i-th stator component and the i+1-th stator component are adjacent stator components, and 1<i≤M.
[0109] In a possible implementation, the address allocation device 800 further includes:
[0110] The third address updating unit is used to obtain the change in the spacing between the jth stator component and the j+1th stator component among the M stator components constituting the conveyor line body when the spacing between the jth stator component and the j+1th stator component changes; wherein j≤M; the base address of the jth stator component and the stator components before the jth stator component is kept unchanged, and the base address of the j+1th stator component and the stator components after the j+1th stator component is updated according to the change, so that the base addresses of the M stator components constituting the conveyor line body have continuity.
[0111] In one possible implementation, the third address updating unit is used to update the base address of the j+1th stator component and the stator component after the j+1th stator component according to the change amount, specifically for increasing the base address of the j+1th stator component and the stator component after the j+1th stator component by the increase in spacing if the change amount is an increase in spacing; and reducing the base address of the j+1th stator component and the stator component after the j+1th stator component by the decrease in spacing if the change amount is a decrease in spacing.
[0112] It should be noted that the address allocation device provided in the above embodiment only uses the division of the above functional modules as an example when executing the address allocation method. In actual applications, the above functional allocation can be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the address allocation device provided in the above embodiment and the address allocation method embodiment belong to the same concept. Therefore, for details not disclosed in the device embodiment of the present application, please refer to the above-mentioned embodiment of the address allocation method of the present application, which will not be repeated here.
[0113] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0114] Fig. 9 A schematic diagram of the structure of a conveyor line provided in an embodiment of the present application is shown. Fig. 9 As shown, the conveyor line body 900 includes: a memory 901 and a processor 902, wherein the memory 901 stores an executable program code 9011, and the processor 902 is used to call and execute the executable program code 9011 to perform an address allocation method.
[0115] In this embodiment, the conveyor line body can be divided into functional modules according to the above method example. For example, each functional module can be corresponded, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0116] In the case of dividing each functional module according to each function, the conveyor line body may include: component determination module, address allocation module, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.
[0117] The transmission line body provided in this embodiment is used to execute the above-mentioned address allocation method, and thus can achieve the same effect as the above-mentioned implementation method.
[0118] In the case of an integrated unit, the conveyor line body may include a processing module and a storage module. The processing module may be used to control and manage the movement of the conveyor line body. The storage module may be used to support the conveyor line body to execute relevant program codes and data.
[0119] The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.
[0120] This embodiment further provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement an address allocation method in the above-mentioned embodiment.
[0121] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement an address allocation method in the above-mentioned embodiment.
[0122] In addition, the conveyor line body provided in the embodiments of the present application can specifically be a chip, a component or a module, and the conveyor line body may include a connected processor and a memory; wherein the memory is used to store instructions, and when the conveyor line body is running, the processor can call and execute instructions so that the chip executes an address allocation method in the above-mentioned embodiment.
[0123] Among them, the conveyor line body, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding address allocation method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding address allocation method provided above, and will not be repeated here.
[0124] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0125] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0126] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An address allocation method, characterized in that: Applied to a conveyor line, the address allocation method includes: When the line sketch of the conveyor line is constructed, a starting point component for the moving part to move along the conveyor line is determined from the line sketch; wherein the conveyor line includes a plurality of stator components, the starting point component is any one of the plurality of stator components, and the moving part moves along the stator component; Base addresses are allocated to the plurality of stator components according to the starting point component, so that the base addresses of the plurality of stator components have continuity.
2. The address allocation method according to claim 1, characterized in that: The component for determining the starting point of the moving part moving along the conveying line from the line sketch includes at least one of the following schemes: Determine the first stator component or the last stator component placed in the sketch building interface of the line body sketch as the starting point component; When the line body sketch is constructed, the first selected stator component among the multiple stator components is determined as the starting point component.
3. The address allocation method according to claim 1, characterized in that: The allocating base addresses to the plurality of stator components according to the starting point component comprises: Using the first base address in the address allocation list as the base address of the starting point component; wherein the address allocation list includes a plurality of continuous base addresses; According to the base address sequence in the address allocation list, other base addresses except the first base address in the address allocation list are sequentially allocated to other stator components except the starting point component in the plurality of stator components.
4. The address allocation method according to claim 1, characterized in that: The address allocation method further includes: When there is a first target component among the plurality of stator components, according to the arrangement order of the plurality of stator components, the base address of the stator component before the first target component is kept unchanged, and the base address of the stator component after the first target component is re-modified, so that the base addresses of the stator components other than the first target component among the plurality of stator components are continuous; Wherein, the first target component is a stator component that is deleted from a plurality of stator components of the conveyor line body.
5. The address allocation method according to claim 1, characterized in that: The address allocation method further comprises: When there is a second target component, the base address of a stator component located after the second target component among the plurality of stator components and the second target components is used as the base address of the second target component, and so on, so that the base address of the subsequent stator component replaces the base address of the previous stator component, and finally the next base address of the base address of the third target component is used as the base address of the fourth target component, so as to keep the base addresses of the plurality of stator components and the second target component continuous; The second target component is a newly added stator component, the third target component is the last stator component among the multiple stator components, and the fourth target component is the last stator component among the multiple stator components and the third target component.
6. The address allocation method according to claim 1, characterized in that: The number of the plurality of stator assemblies is M, and there is a spacing between two adjacent stator assemblies among the M stator assemblies constituting the conveyor line body, M≥2; The allocating base addresses to the plurality of stator components according to the starting point component comprises: The preset base address is used as the base address of the first stator assembly among the M stator assemblies constituting the conveyor line body, and the base address of the i-th stator assembly among the M stator assemblies constituting the conveyor line body plus the sum of the spacing is used as the base address of the i+1-th stator assembly, so that the base addresses of the M stator assemblies constituting the conveyor line body have continuity; Among them, the first stator component is the starting component, the i-th stator component and the i+1-th stator component are adjacent stator components, and 1<i≤M.
7. The address allocation method according to claim 6, characterized in that: After allocating base addresses to the plurality of stator components according to the starting point component, the address allocation method further comprises: When the distance between the jth stator assembly and the j+1th stator assembly among the M stator assemblies constituting the conveyor line body changes, obtaining the change amount of the distance; wherein j≤M; The base addresses of the j-th stator assembly and the stator assembly before the j-th stator assembly are kept unchanged, and the base addresses of the j+1-th stator assembly and the stator assembly after the j+1-th stator assembly are updated according to the change amount, so that the base addresses of the M stator assemblies constituting the conveyor line body have continuity.
8. The address allocation method according to claim 7, characterized in that: The updating of the base addresses of the j+1 stator assembly and the stator assembly after the j+1 stator assembly according to the variation includes: If the change amount is the spacing increase amount, increasing the base address of the j+1 stator component and the stator components after the j+1 stator component by the spacing increase amount; If the change amount is a pitch reduction amount, the base addresses of the j+1 stator assembly and the stator assembly after the j+1 stator assembly are reduced by the pitch reduction amount.
9. An address allocation device, characterized in that: Configured on the conveyor line body, the address distribution device includes: A component determination module is used to determine, when the line body sketch of the conveyor line body is constructed, a starting point component for the moving part to move along the conveyor line body from the line body sketch; wherein the conveyor line body includes a plurality of stator components, the starting point component is any one of the plurality of stator components, and the moving part moves along the stator component; The address allocation module is used to allocate base addresses to the multiple stator components according to the starting point component, so that the base addresses of the multiple stator components have continuity.
10. A conveyor line, characterized in that: The conveyor line body comprises: A memory for storing executable program codes; A processor is used to call and run the executable program code from the memory so that the conveyor line body executes the address allocation method as described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the address allocation method according to any one of claims 1 to 8 is implemented.
12. A computer program product, when the computer program product is run on a computer or a processor, enables the computer or the processor to execute the address allocation method according to any one of claims 1 to 8.