CNC-PARAMETER GENERATING METHOD FOR AN AUTOMATED TUBE BENDING SYSTEM
20220137594 · 2022-05-05
Inventors
Cpc classification
G05B2219/35192
PHYSICS
Y02P90/02
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
G05B2219/36203
PHYSICS
G05B2219/36312
PHYSICS
G05B19/4097
PHYSICS
International classification
G05B19/4093
PHYSICS
Abstract
The present invention provides a CNC-parameter generating method in an isometric projection environment for the control and processing of tubes by at least one CNC-tube bending machine at least comprising: i) to generate a first vector on a touch screen; ii) to carry out a verification step by a microprocessor, iii) to assign the first vector to one of the directions, NORTH, UP, WEST, SOUTH, DOWN and EAST; iv) to generate further vectors by tapping once on the touch screen; v) to input dimensional values for the vectors on the touch screen, and to transfer dimensional values from the microprocessor device to one or more computers. It is also provided a parameter generating system in an isometric projection environment for the control and processing of tubes by at least one CNC-tube bending machine.
Claims
1: An on construction site CNC-parameter generating method in an isometric projection environment for the control and processing of tubes by at least one CNC-tube bending machine at least comprising: a) to generate a first vector on a touch screen by tapping twice on the touch screen, the touch screen being in communication with a microprocessor device; b) to carry out a verification step by the microprocessor, is the absolute value, length, of the first vector greater than a threshold value, T.sub.h, if not continue with step a); c) to assign the first vector to one of the six directions, NORTH, UP, WEST, SOUTH, DOWN and EAST; d) is the vector assignment correct, if no continue with step a); e) to generate further vectors by tapping once on the touch screen; f) to input dimensional values for the vectors on the touch screen; and, g) to transfer dimensional values from the microprocessor device to one or more computers, where the one or more computers are in communication with one or more CNC-tube bending machines.
2: The method according to claim 1, where step a) at least comprises: ai) tapping a first input location parameter on the touch screen, the touch screen being in communication with the microprocessor device; aii) verifying correctness of the first input location parameter, i. if the first input parameter does not fit correctly in a set isometric grid pattern continue at point ai); aiii) is the first input location parameter a first point, if no continue at av); aiv) set the first input location parameter as the first point, and set last point equal with first point, continue at point ai); av) create a vector between the first input location parameter and a last point.
3: The method according to claim 1, where step b) at least comprises: bi) is the difference between the absolute value of the first input location parameter and the first point greater than a threshold value, T.sub.h, the difference represents a first vector, if the difference is not greater than T.sub.h then continue at point ai).
4: The method according to claim 1 where vector assignment step c) at least comprises: ci) decide UP or DOWN orientation of vector: if the Y-component is less than zero then continue at i); if the Y-component is greater than zero then continue at ciii); i. decide if vector Y-component is UP, if vector Y-component is UP then set vector Y-component UP and continue at vi); cii) decide WEST or NORTH orientation of vector: ii. decide if vector X-component is WEST, if vector X-component is WEST then then set vector X-component WEST and continue at vi); iii. set vector Z-component to NORTH, and continue at vi); ciii) decide if vector Y-component is DOWN, if vector Y-component is DOWN then then set vector Y-component DOWN and continue at vi); civ) decide EAST or SOUTH orientation of vector: iv. decide if vector X-component is EAST, if vector X-component is EAST then set vector X-component to EAST and continue at vi); v. set vector Z-component to SOUTH; vi. carry out a self crash test, is the vector orientation opposite of last direction, if the vector orientation is opposite then the next step will be to generate a first vector by inputting parameters on a touch screen, the touch screen being in communication with a microprocessor device.
5: The method according to claim 4 where substep i) at least comprises the further substeps of: ia) carrying out vector component angle measurement; is vector component angle greater than α, if no then continue with substep ib); is vector component angle less than β, if no then continue with substep ib), else continue with substep ic); ib) is vector component angle greater than −β, if no then continue with substep id); α is vector component angle less than α, if no then continue with substep id) ic) set vector component angle to ABS β and set vector Y-component UP; id) if vector Y-component is UP then carry out a self crash test else decide if vector component is WEST or NORTH.
6: The method according to claim 5 where substep id) at least comprises the further substeps of: carrying out a WEST or NORTH test: is vector component angle less than or equal to α, if no then continue with substep ie); is vector component angle greater than or equal to γ, if no then continue with sub step ie); set vector component angle to ABS S and set vector component WEST; ie) if vector component is WEST then carry out a self crash test else set vector component angle to ABS S and set vector component to NORTH then carry out a self crash test.
7: The method according to claim 4 where substep ciii) at least comprises the further substeps of: ia) carrying out vector component angle measurement; is vector component angle greater than α, if no then continue with substep ib); is vector component angle less than β, if no then continue with substep ib), else continue with substep ic); ib) is vector component angle greater than −β, if no then continue with substep id); is vector component angle less than α, if no then continue with substep id) ic) set vector component angle to ABS β and set vector Y-component DOWN; id) if vector Y-component is DOWN then carry out a self crash test else decide if vector component is EAST or SOUTH.
8: The method according to claim 7 where substep id) at least comprises the further substeps of: carrying out a EAST or SOUTH test: is vector component angle less than or equal to α, if no then continue with substep ie); is vector component angle greater than or equal to γ, if no then continue with sub step ie); set vector component angle to ABS S and set vector component EAST; ie) if vector component is WEST then carry out a self crash test else set vector component angle to ABS S and set vector component to SOUTH then carry out a self crash test.
9: The method according to claim 1, where the vector assignment step c) at least comprises the steps of: c1) to set origin Y=0 and X=0 to upper left corner of the touch screen; c2) to create a horizontal reference vector for measurement of first vector component angles; c3) to carry out a first vector component angle test for assignment of one of the directions: NORTH, UP, WEST, SOUTH, DOWN and EAST.
10: The method according to claim 9, where the vector component angle test c3) at least comprises the steps of: to carry out one or more of the six tests: i. is vector component angle, vca, greater than or equal to γ and smaller than α, if yes then set vca=δ and continue at vii; ii. is ε>vca α, if yes then set vca=β and continue at vii; iii. is θ>vca ε, if yes then set vca=ζ and continue at vii; iv. is λ>vca θ, if yes then set vca=κ and continue at vii; v. is ρ>vca κ, if yes then set vca=ξ and continue at vii; vi. is γ>vca ρ, if yes then set vca=σ and continue at vii; vii. continue with step d.
11: The method according to claim 9, where the vector component angle, the vca, test c3) at least comprises the steps below where
12: The method according to claim 9, where the vector component angle, the vca, test c3) at least comprises the steps below where
13: The method according to claim 1, where step e) at least comprises: e1) testing if input parameter is a tap or press, if the input is press then an intermediate helpline is drawn, e2) drawing a vector line from beginning of first helpline to end of a second helpline, and continue to wait for input parameters.
14: A CNC-parameter generating system in an isometric projection environment for the control and processing of tubes by at least one CNC-tube bending machine at least comprising: a) a first operator in operable communication with a portable device), the portable device) comprises: a1) an input unit; a2) a software program for CNC-parameter generation in operable communication with the input device; a3) a display unit in operable communication with the software program configured to display parameters generated by the software program on an isometric pattern including; b) a communication interface facilitating communication between the portable device and at least a first computer, and c) a communication interface facilitating communication between the first computer and at least a first CNC tube bending machine.
15: The CNC-parameter generating system according to claim 14 at least further comprising: d) a second computer in operable communication with the portable device, the second computer being configured to compile tube bending parameters from the portable device into a format independent of the software program.
16: The CNC-parameter generating system according to claim 15 at least further comprising: e) a tubing spool for loading into the CNC tube bending machine.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0109] Following is a brief description of the drawings in order to make the invention more readily understandable, the discussion that follows will refer to the accompanying drawings, in which
[0110]
[0111]
[0112]
[0113]
[0114]
[0115]
[0116]
[0117]
[0118]
[0119]
[0120]
[0121]
[0122]
MODE(S) FOR CARRYING OUT THE INVENTION
[0123] In the following it is firstly disclosed general embodiments in accordance to the present invention, thereafter, particular exemplary embodiments will be described. Where possible reference will be made to the accompanying drawings and where possible using reference numerals in the drawings. It shall be noted however that the drawings are exemplary embodiments only and other features and embodiments may well be within the scope of the invention as described.
[0124] In principle, the present invention relates to conversion of isometric draft charts for tubing or tube bending to CNC-machine readable formats. On-site observations are entered into isometric draft chart for tubing on a portable device. The isometric draft is then converted into “real scale model” and CNC (DAP) tubing parameters are prepared for CNC-bending machines.
[0125] The present invention provides a tool implemented on a portable device 502, such as a tablet or smart phone (
[0126] The tool 502a includes a visual graphical user interface 502c which simplifies tube layout/design for a user of the tool. Visual exemplification of an embodiment of the invention is illustrated in
[0127] The graphic shown are screen dumps from a portable device 502 such as a smartphone. A prerequisite for the device is that it must include a display 502c, a user input interface 502b, memory at least for storing software application(s) in accordance with the present invention and at least one processing unit. The user input interface 502b and the display 502c can be physically separated from each other and from the CPU, however logically they will be part of the same device 502.
[0128] The graphical user interface 502b of the tool 502 allows a user to navigate by zooming and scrolling around in a drawing area visualised on a screen of the portable device. In one example tubing path can be created by adding points with a single tap of a finger or a pointing device. A line can be created between two points. Additional points can create a sequence of connected lines as a single object. A long press can create an offset line, allowing the user to sketch a tube that travels in multiple axis at once.
[0129] According to the present invention, one operates with 2D and 3D environments in real and virtually.
[0130] A first person 501 operates on a 2D screen with the aim to create 3D tubes with bends according to the representation on the 2D screen ref.
[0131] Thus the UP, NORTH, DOWN parameters and lengths have to be converted to normal three-dimensional coordinate systems.
[0132]
[0133] An assign-button on a lower right (ref.
[0134] In one embodiment of the invention the tool has an ability to generate CSV-files (comma-separated values) containing X, Y and Z coordinates, see
[0135] Another feature of the tool is the ability to generate PDF documentation. This enables the possibility to easily perform reverse engineering and to provide a better documentation control. As-built drawings can be generated by an operator 501 along the way.
[0136] Advanced devices with computational capacity and processing capacity such as state of the art portable devices opens UP for augmented reality. With augmented reality a user will be able to generate a three dimensional model of the tubing drawn. By looking through a camera of the portable device with the 3D-object rendered as a layer on top, the operator can get a clear picture of what the tubing would look like on the end product/system.
An Exemplified System According to the Present Invention.
[0137] Reference is made to
[0138] The system comprises the portable device 502, which includes a software algorithm 502a for a CNC-parameter generating method in an isometric projection environment for the control and processing of tubes by at least one CNC-tube bending machine. The portable device comprises an input unit 502b or in one embodiment is in operable communication with an input unit 502b. Moreover, the portable device 502 also comprises a display unit 502c. The display unit 502c can be an integral part of the portable device 502 or it can be in operable communication with the portable device 502. In one embodiment, the display unit 502c is a touch screen thereby also functioning as an input unit 502b. The software can be stored in a local memory. The local memory can be included in the portable device 502.
[0139] Principles Applied for Transformation Between Paper Based Isometric Drawing Regime and Software Implemented “Isometric” Drawing Regimes.
[0140] The isometric grid operates with 60° between all adjacent axis (360°/6), see
[0141] When a pipe designer makes his drawing on an isometric paper, he simply draws lines following the axis on the paper. If a tubing shall be drawn upward, then he simply draws a vertical line on the isometric grid paper. If the tube shall bend for example to the right after the elevation, he will follow an eastern axis and so on. Having finalised a drawing he will measure distances between tube bends and add them on the drawings. Having finished his drawings, he will bring the drawing to someone who can transform the drawings into data files for production of tube systems on CNC-bending machines. This transformation from drawings to data may include geometric calculations.
[0142] Contrary to the manual operation above, according to the present invention any geometric calculation can be made on site on the portable device 502, also the portable device 502 can carry out conversion from on screen drawings to a data format that is suitable for conversion to CNC-readable data.
[0143] Conversion from on screen drawings, which essentially is carried out by tapping a finger or a pointing device on the screen, to real true models of a tube system necessitates some algorithms which takes into account whether input screen data is true or not, is a drawn vector north or east, etc. Reference points, reference angles etc. have to be introduced on the “isometric” pattern on the portable device.
[0144] Pixels are commonly used to represent on screen points on digital devices. Tube bending designs operates in 3D with vectors, hence the idea of working with isometric coordinate systems. The visual world around us is three-dimensional, display devices are 2D devices showing projections of 3D objects into 2D. “Projection” is, in simple terms, the way we “flatten” a 3D view into 2D.
[0145]
[0146]
[0147]
[0148] In one example the tile length AC=48 pt., whilst the angle v is 30° as the tile is extracted from a true isometric grid. With the given length of AC, D is:
ED= 48/2 tan 30°
ED=8√{square root over (3)} Eq. 2
D≈[24.8√{square root over (3)}]
[0149] With the length of ED and AE it is easy to arrive at the length of AD by the use of Pythagorean Theorem. The decimal value of D with the angle v=30° includes a large number of decimals; this prevents an efficient calculation by a processor. Hence, true isometric grids is not CPU-efficient. To increase the performance of the calculations and thereby the speed of the algorithms according to the present invention, a twist in the isometric grid pattern is introduced. The goal is to have an isometric grid pattern which “looks” as a real isometric grid pattern while simultaneously increasing the performance of calculations carried out for objects drawn in a grid pattern. This goal will be achieved if we can find an angle v that renders the point D as an integer. Instead of being bound to a 30°“system” we can start opposite around and choose BD to be 24 instead of 2*8√{square root over (3)}, this is an integer value fairly close to 16√{square root over (3)} and it will render the overall impression of the grid system similar to a true isometric system, even though in reality it is a diametric grid pattern. Note that 16√{square root over (3)} comes from 2*8√{square root over (3)}, (Eq. 2). The vector lengths assigned to the “new tile” is AC=48 pt. (as in the previous tile) and BD=24 pt. We now have:
[0150] So, what is the new angle ∠DAB and what is the difference between the new angle and the isometric 60° angle?
∠DAB=2∠DAE
∠DAE=tan.sup.−1 12/24
∠DAE≈26.565° Eq. 3
∠DAB≈2*26.565°
∠DAB≈53.130°
[0151] The elementary tile according to the present invention then includes the following angles: ∠DAE≈26.565, ∠DAB≈53.130,
and the following vector lengths: AC=48 pt., BD=24 pt., ED=12 pt. from Pythagorean Theorem |AD|=|AB|=|BC|=|CD|=√{square root over ((AE.sup.2)}+ED.sup.2), |AD|=|AB|=|BC|=|CD|≈26.8328.
[0152] Having established an appropriate grid pattern with an elementary tile which emphasizes on CPU-computational efficiency the basis for an algorithm that provides a CNC-parameter generating method in an isometric projection environment have been laid.
Example of Algorithms for a Software Tool on a Portable Device According to the Present Invention.
[0153] In the following discussion when referred to isometric, isometric shall include the diametric projection as introduced with reference to
[0154] The aim of the algorithm is to facilitate generation of CNC-parameters in situ by a first person 501, having at his disposition a portable device 502, where the portable device 502 has capabilities as indicted above. The first person 501 can, according to the algorithm, create tube-bending drafts on screen on the portable device; export the draft as data to a receiving computer 506 and/or CNC-tube bending machine 507 for production of tubes according to the layout of the on screen draft.
[0155] The on-site first person 501 can be a field technician with knowledge in the art of designing tube layout systems. The first person 501 will, faced with a construction site where tubes are to be installed start taking measurements of tube paths, draw the tubes on the screen of his portable device 502 and add measurement of tube path to the portable device. Ultimately, the first person 501 may receive tubes with tube bending in accordance with his draft from one or more tube-bending machine 507.
[0156] In
[0157] Having entered points to the screen the points entered must be verified as valid 008 in a “vector length” test. In the second block 009-034 of
[0158] If two points are too close to each other on the screen, it is assumed that one of the points are invalid and for example caused by an unintentional “double-tapping”. Another reason to avoid points from being too close to each other is that it will result in short lines, which will give little space for labelling lines. Therefore, it is carried out a test measuring the absolute length of a vector, and if the vector is below a threshold set to T.sub.h the user will be requested to add a new second point, which together with the already entered first point will establish a line. The distance between the second—new point—and the original first point is measured and tested again. Following the “vector length”-test (substep 008) a vector orientation step is carried out 009-033. It must be verified that a correct orientation of the vector has been entered/drawn. For example, self-collision test(s) must be carried out. If a second vector is drawn opposite, of a previous vector then the two vectors will overlay each other indicating a tubing crash and this is not acceptable. If an opposite planar direction of a vector shall be valid, it must have a vertical UP or DOWN vector in between itself and a previous vector, i.e. SOUTH vector cannot follow directly after a NORTH vector. In addition, the absolute length of the UP or DOWN vector must be above a threshold T.sub.v to prohibit a too sharp bend and to prohibit self-crash, due to the thickness of the tubes. A bend that is 180° may be handled by the software for CNC-parameter generation 502a as two consecutive 90° bends in line, where the bends can be two times the bending radius.
[0159] If the vector test fails then the first person 501 will have to restart input of parameters for the relevant vector.
[0160] Further vectors are entered/drawn in the third block 035-039 and 042-060,
[0161] When the first person 501 has finished his drawing of the tubes
[0162] The first person 501 may additionally enter bending angles for tubing used for calculation of 2D and 3D vectors.
[0163] A combination of input angle values and calculated angle values based on geometric and length of lines (vectors) is possible. For example, the first person may be faced with a system where angles of a previously known system shall be combined with a new system into one single new system. In one example a previously known system can be loaded into the portable device and the first person 501 may take observations in situ and add them into his portable device building on the system already loaded into the portable device 502.
[0164] The final step on the portable device 502 is to transfer dimensional values from the portable device 502 to one or more computers 503, 506, where the one or more computers are in communication with one or more CNC-tube bending machines 506. In addition, where one of the computers 503 can be used for generation of documentation.
[0165] The algorithm above with reference to
[0166] The algorithm above is simplified among others in that the verification routines were simplified. All points entered and all vectors calculated from entered points must be software checked to verify that they represent true data.
[0167]
The following applies: [Eq 4]
[0168] To decide to which solid line a “finger tap” on the screen belongs the bisection lines—dotted lines—are used. If a tap “pt” is made such that the angle represented by a vector from origin to “pt” with reference to γ is smaller than α and bigger than γ it belongs to NORTH. This bisection concept is used for all directions (NORTH, UP, WEST, etc.). Too not exclude angles that have the exact same angle as α, β, γ, etc. the algorithms may at an upper limit or lower limit include the bisection angle, e.g. α, γ
. In practice, this will be of academic interest as the resolution normally will be high and the probability of “tapping” spot on a fixed angle (α, β, γ, etc.) is small.
[0169] A practical resolution hampering double taps to be registered has to be decided, effectively discriminating “vectors” that are shorter than a threshold—resolution. As indicated for the general routine above, if two points are too close to each other on the screen it is assumed that one of the points are invalid and for example caused by an unintentional “double-tapping”. If a vector is below a threshold set to T.sub.h, it is assumed that the vector, i.e. the last point is erroneous. In a practical example T.sub.h=(20 pt, 80 pt) and in one particular embodiment T.sub.h=40 pt. merely as an example.
[0170] An example of determination of vector orientation can in detail be carried out as indicated in the software routine in the box below, note that the numerically assigned angles are associated with the dotted lines of
[0171] Several approaches can be chosen to determine; whether an onscreen tap 301 is valid or not, whether a following tap 301 represents a valid vector, which direction the vector shall be appointed to and whether the tap 302 is a tap or a “press” 302. Onscreen press 302 indicates, according to one embodiment that a vector shall be drawn in a way which departs from the solid lines of
[0172] With respect to appointing a vector to a “true” direction in accordance with
[0173] The first approach, the “quadrant method” takes into account that trigonometric functions such as cosines, sines and tangent “repeats” itself periodically and it will be sufficient to first find out if a vector belongs to NORTH or UP in the first quadrant as a first intermediate step and then establish conditional tests which takes into account the sign of X and Y. The signs of X and Y will vary between quadrants. In a Cartesian system first quadrant means that bot X and Y≥0 however, in accordance to one variant of the present invention it is convenient to have a positive Y pointing downward, this simplifies the software algorithms. A first intermediate vector component angle, vca.sub.int, is established by using absolute values X and Y vector component coordinates, in a next step it is decided if the true vca belongs to first, second, third or fourth quadrant. For example:
TABLE-US-00001 If γ ≤ vca.sub.int ≤ α then vca is: NORTH if: Y < 0 and X > 0 WEST if: Y < 0 and X < 0 SOUTH if: Y > 0 and X < 0 EAST if: X > 0 and Y > 0 If α < vca.sub.int < β then vca is: UP if: Y < 0 DOWN if: Y > 0
[0174] In the table above we take into consideration that
will vary between 0 and near to 90°.
[0175] In a twist of the “quadrant method” above
which means that the value of tan(vca.sub.int) is the same for each 180°, i.e. tan α=tan (α+180°). The same principle as in the table above applies, which gives:
TABLE-US-00002 If γ ≤ vca.sub.int < α then vca is: NORTH if: Y < 0 and X > 0 SOUTH if: Y > 0 and X < 0 If − α ≤ vca.sub.int < γ then vca is: EAST if: Y > 0 and X > 0 WEST if: Y < 0 and X < 0 If α ≤ vca.sub.int < β then vca is: UP if: Y < 0 DOWN if: Y > 0 If − β < vca.sub.int < − α then vca is: UP if: Y < 0 DOWN if Y > 0
[0176] The second approach is illustrated in the table below.
TABLE-US-00003 Box 1 // Flip coordinate system vector.setY(newValue: vector.getY( ) * −1) //Find the direction based on the vector angle //Then correct angle, following a bisection method var dir: Direction? let angle = Vector.getAngle( ) if angle >= 0 && angle < 58.283 { // Angle between (and including) γ and α dir = .north vector.setAngle(newValue: 26.565) // Vector angle set to δ (NORTH) } else if angle >= 58.283 && angle < 121.718 { // Angle between α and ε dir = .up vector.setAngle(newValue: 90) // Vector angle set to β (UP) } else if angle >= 121.718 && angle < 180 { // Angle between ε and θ dir = .west vector.setAngle(newValue: 153.435) // Vector angle set to ζ (WEST) } else if angle >= 180 && angle < 238.283 { // Angle between θ and λ Dir = .south vector.setAngle(newValue: 206.565) // Vector angle set to κ (SOUTH) } else if angle >= 238.283 && angle < 301.718 { // Angle between λ and ρ dir = .down vector.setAngle(newValue: 270) } else if angle >= 238.283 && angle < 360 { // Vector angle set to ξ (DOWN) dir = .east vector.setAngle(newValue: 333.435) { // Vector angle set to σ (EAST) } //Verify that a direction was assigned guard let direction = dir else { print(“Error, could not assign direction”) return } //Flip coordinate system back vector.setY(newValue: vector.getY( ) * −1)
[0177] A first intention of the software routine above is to provide a 0-360° range for vectors. First step is to turn the vector coordinate system up-side down so that the Y-component in the 2D space is pointing upward. Note that by default the coordinate [0, 0] is located at the top left corner of the display unit 502c. In order to make the code easier to reed, we flip the coordinate system. Now the coordinate [0, 0] is located in the lower left corner of the display unit 502c—as one commonly know it from mathematics. The flip of the coordinates is a measure for user friendliness and is not necessary to carry out the invention, though in the software 502a one has to take account for whether the Y-coordinates are upside down or not. Thereafter the angle of the vector is determined. Determination of vector angles are simply carried out by series of tests, wherein it is tested if a vector end point lies between two particular dotted lines, starting with γ and α, if the first test is true the point is assigned to the NORTH axis giving a vector with a NORTH direction. If the test fails, a new range is tested until one has tested for all six directions. To carry out the determination of the angle a virtual reference vector [1,0] is introduced. It is not due to the coordinate system being flipped that an angle between 0-360 degrees can be determined. This is due to a custom method “getAngle” which checks whether the X- or Y component of a vector are positive or negative.
[0178] If both X & Y are positive, this indicates first quadrant, and if X is negative and Y is positive, it is an indication of the second quadrant and so on.
[0179] By knowing which quadrant the vector is located in, one can add 0/180/360-degrees, based on use of tangent, where an angle is found based on the length of decomposed X-vector and Y-vector. This is in contrast to the use of trigonometric functions such as Cosines, Sines or Tangent, which works within a range of ABS (0-90°).
[0180] Below follows a routine, which is associated with
TABLE-US-00004 Box 2 000: Begin 001: Wait for user input 002: Is input location inside drawing area? 003: Snap input location to grid 004: Is there a first point? 005: Create a first point 006: Make last point equal to first point 007: Create a vector between last point and input location 008: Is vector length greater than 40 pt? //A test against double tapping/erroneous input, 009: Is vector Y-component less than zero? (Upper left corner defines origin in an Cartesian coordinate system) //Taking into consideration that “YDOWN” is positive this means that a yes gives the directions UP, WEST or NORTH, 010: Is vector angle greater than 58.283 degrees? //Vector angle > α? No continue at 12 011: Is vector angle less than 90.000 degrees? //Vector angle < β? No continue at 12, Yes, continue at 14 012: Is vector angle greater than −90.000 degrees? //Vector angle > ξ, (numeric value) no continue at 16 013: Is vector angle less than −58.283 degrees? //Vector angle smaller than ρ, no continue at 016 014: Adjust vector angle to |90.0| degrees //That is vector between α and β is interpreted as β i.e. UP, whilst between ξ and ρ is interpreted as ξ i.e. DOWN 015: Set tubing object variable direction to ‘up’ //Continue at 034 016: Is vector angle less than or equal to 58.283 degrees? 017: Is vector angle greater than or equal to 0.0 degrees? 018: Adjust vector angle to |26.565| degrees 019: Set tubing object variable direction to ‘west’ 020: Adjust vector angle to |26.565| degrees 021: Set tubing object variable direction to ‘north’ 022: Is vector angle greater than 58.283 degrees? 023: Is vector angle less than 90.000 degrees? 024: Is vector angle greater than −90.000 degrees? 025: Is vector angle less than −58.283 degrees? 026: Adjust vector angle to |90.0| degrees 027: Set tubing object variable direction to ‘down’ 028: Is vector angle less than or equal to 58.283 degrees? 029: Is vector angle greater than or equal to 0.0 degrees? 030: Adjust vector angle to |26.6| degrees 031: Set tubing object variable direction to ‘east’ 032: Adjust vector angle to |26.5, 65| degrees 033: Set tubing object variable direction to ‘south’ 034: Is direction opposite of last direction? //Vector direction settled, however is it valid, yes means that tube is self crashing, if yes continue at 001 035: Create a new point [x: (last point x-component + vector x-component), y: (last point ycomponent + vector y-component)] 036: Snap new point to grid 037: Is touch type ‘tap’? (Else touch type ‘press’) //Touch type press means tubing don't follow main axis directions, if no continue at 049 038: Does tubing object not contain any previous lines? 039: Add a black solid line to the tubing object from last point to new point 040: Last point equals new point 041: Last direction equals direction 042: Is a green dotted line expected? 043: Is the line in the same direction as the last direction? 044: Merge lines 045: Does any lines in the same fraction go in the same or opposite direction? 046: Is the line in the same direction as the last direction? 047: Merge lines 048: Add a solid line to the tubing object from last point to new point 049: Does tubing object not contain any previous lines? 050: Add a green dotted line to the tubing object from last point to new point 051: Is the last line a green dotted line? 052: Are there less than 2 green dotted lines in this fraction? 053: Does any lines in the same fraction go in the same or opposite direction? 054: Add a green dotted line to the tubing object from last point to new point 055: Are there less than 3 green dotted lines in this fraction? 056: Does any lines in the same fraction go in the same or opposite direction? 057: Add a green dotted line to the tubing object from last point to new point 058: Add a black solid line from fraction start to end 059: Add a solid line to the tubing object from last point to new point 060: Add a green dotted line to the tubing object from last point to new point
[0181] The two tables above describes different approaches to determine vector angles to be calculated after a first operator 501 has entered vector coordinates by tapping twice on the screen 502c. The second table, algorithm, includes steps to verify if valid coordinates have been entered by the first operator 501, double tapping is checked as well as the length of a vector. The second table also includes algorithms for onscreen entries that deviates from the entries associated with entries that renders vectors coinciding with the six directions, NORTH, UP, WEST, SOUTH, DOWN and EAST. The first table includes steps for decision directions, i.e. UP, DOWN etc. The steps given in table one are alternatives to the steps given in step 009-033 in table 2, also see
[0182] A portable device 502 is defined above, it shall be understood that the elements indicated as integrated with the portable device 502, such as a touch screen etc., is logically integrated, physically they can be split. For instance, a “dumb” input device 502b in the form of a touch screen 502c may communicate with software program 502a in a microprocessor device 502, in a physically decentralised system.
Another Example of an Algorithm for a Software Tool on a Portable Device According to the Present Invention.
[0183] Function onSingleTap is called when an operator taps the finger on a grid on the portable device. The touch location sent as a parameter gets snapped to the grid and a line is drawn from a previous location to the new location. The line is then validated according its direction as well as the direction of the previous line. This is to prevent the operator from drawing the line on top of the last line and to prevent the operator from drawing lines that do not conform with the grid lines on the portable device.
[0184] Listing 1: onSingleTap
TABLE-US-00005 Box 3 1 global: Point lastPoint, Float lastAngle 2 input: Point location 3 output: None 4 5 newPoint ← snapToGrid (location) 6 if validateDirection (lastPoint, newPoint, lastAngle) then 7 tube.add(Line(lastPoint, newPoint))
[0185] Snap Point to Grid
[0186] This algorithm receives a raw input from a touch screen and returns a new Point snapped to the closest junction in an isometric grid. Line number six in the box 4 below shows a two step conversion from a raw floating number input too; first a rounded number (up or down) and secondly to an integer, hence the raw floating number are converted to an X and Y integer. The variables tileWidth and tileHeight represents the distance between each junction. The line numbers 9-12 in box 4 decides whether the X integer parameter shall be snapped to the right or left in a tile, ref
[0187] Listing 2: snapToGrid
TABLE-US-00006 Box 4 1 global: Float tileWidth, Float tileHeight 2 input: Point raw 3 output: Point 4 5 /* Typecast floating point to integer */ 6 x ← (int) Math.round(raw.x) 7 y ← (int) Math.round(raw.y) 8 9 If (x mod (tileWidth/2)) < (tileWidth/4) then 10 x ← x − (x mod (tileWidth/2)) /* snap left */ 11 Else 12 x ← x + (x mod (tileWidth/2)) / * snap right * / 13 14 if (y mod tileHeight) < (tileHeight/2) then 15 y ← y − (y mod tileHeight) /* snap up */ 16 Else 17 y ← y + (y mod tileHeight) /* snap down */ 18 19 /* Subtract half a tile height on every even numbered vertical line */ 20 if (x/(tileWidth/2) mod 2 = 0) 21 y ← y − (tileHeight/2) 22 23 return Point (x, y)
[0188] Validate Direction
[0189] The values x and y (listing 3) are calculated to be the x- and y component of a vector reaching from point lastPoint to point newPoint. The angle of this vector is calculated using the function atan 2. This angle is then used to check what direction the vector is pointing. An allowable angle will return a true value, i.e. If the vector does not conform in parallel with the gridlines or if the vector points in the opposite direction of the last line. The direction is considered illegal and user input is ignored, i.e. a false return is established ref. line numbers 15-24 in box 5.
[0190] Listing 3: validateDirection
TABLE-US-00007 Box 5 1 #define NORTH atan2(1, 2) /* δ (ca 26.6) degrees */ 2 #define UP atan2(1, 0) /* β (90 ) degrees */ 3 #define WEST atan2(1, −2) /* ζ (ca 153.4) degrees */ 4 #define SOUTH atan2(−1, −2) /* κ (ca −153.4) degrees */ 5 #define DOWN atan2(−1, 0) /* ξ (−90) degrees */ 6 #define EAST atan2(−1, 2) /* σ (ca −25.6) degrees */ 7 8 input: Point lastPoint 9 output: Boolean 10 11 x ← newPoint.x − lastPoint.x 12 y ← newPoint.y − lastPoint.y 13 newAngle ← atan2 (y, x) /* returns an angle [−π .fwdarw. π>*/ 14 15 /* check line angle according to grid */ 16 if newAngle!=NORTH or newAngle!= UP or newAngle != WEST 17 or newAngle!=SOUTH or newAngle!= DOWN or newAngle != EAST THEN 18 return false /* illegal direction */ 19 20 /* check line angle according to last line */ 21 if (newAngle = NORTH and lastAngle = SOUTH) 22 or (newAngle = UP and lastAngle = DOWN) 23 or (newAngle = WEST and lastAngle = EAST) 24 return false /* illegal direction */ 25 26 return true
LIST OF REFERENCES
[0191] 301 Tap [0192] 302 Press [0193] 303 EAST [0194] 304 UP [0195] 305 WEST [0196] 306 NORTH [0197] 308 EAST and UP [0198] 309 Green dotted line [0199] 310 EAST-component [0200] 311 UP-component [0201] 312 WEST-component [0202] 313 NORTH-component [0203] 314 Keyboard on touch screen, soft keyboard, or mechanic keyboard [0204] 315 Alphanumeric display area [0205] 316 Entered parameter/length value [0206] 317 Calculated length of tube section [0207] 501 Field technician, first operator [0208] 502 Smartphone/tablet with IsoTube application [0209] 502a Software program for CNC-parameter generation [0210] 502b Input unit [0211] 502c Display unit [0212] 503 Composition of documentation [0213] 504 Engineer [0214] 505 Machine operator [0215] 506 Compiling CSV-file to machine code with existing software [0216] 507 CNC tube bending machine [0217] 508 Tubing spool [0218] 509 Shipping [0219] 510 Drawing shared through the internet using cloud services, email or other technologies. [0220] 511 Data sent as a PDF or/and CSV [0221] 512 Data sent as CSV-file [0222] 513 Compiled machine instructions sent to CNC machine [0223] 514 Tubing spool is loaded in to the machine [0224] 515 Finished product is packed and ready for shipping [0225] 516 Tubing is shipped to customer or operator at customer site [0226] T.sub.h Threshold value, in one embodiment set to 40 pt, value is a question of configuration [0227] T.sub.v Tv is a minimum value of a vertical vector. It is dependent on minimum bending diameter of the tubes in question and of the diameter of the tubes in question. [0228] IoT Internet of the things [0229] IIoT Industrial Internet of the Things [0230] ABS Absolute value of vector or angle [0231] PDF Portable Document Format (PDF) is a file format for presentation of documents, including text formatting and images, in a manner independent of application software, hardware, and operating systems. [0232] ν In one embodiment ν=30° [0233] α In one embodiment α=58.283° [0234] β In one embodiment β=90.000°; UP [0235] γ In one embodiment γ=0.0° [0236] δ In one embodiment δ=26.565°; NORTH [0237] ε In one embodiment ε=121.718° [0238] ζ In one embodiment ζ=153.435°; WEST [0239] θ In one embodiment θ=180.000° [0240] κ In one embodiment κ=206.565°; SOUTH or in the alternative algorithm counting in the opposite direction rendering SOUTH=−153.435 [0241] λ In one embodiment λ=238.283° [0242] ξ In one embodiment ξ=270.000°; DOWN (or −90°) [0243] ρ In one embodiment ρ=301.718° [0244] σ In one embodiment σ=333.435°; EAST (or −25.6°) [0245] UP UP is an upward vector in an isometric projection environment for tube bending according to an embodiment of the present invention. A negative Y-vector component in a 2D projection corresponding to a touch screen projection as the [0,0] (origin) is on the upper left of a display unit 502c. [0246] DOWN DOWN is a downward vector in an isometric projection environment for tube bending according to an embodiment of the present invention. A positive Y-vector component in a 2D projection corresponding to a touch screen projection display unit 502c.
[0247] NORTH NORTH is a vector in an isometric projection environment for tube bending according to an embodiment of the present invention. A positive X-vector component and a negative Y-vector component in a 2D projection corresponding to a touch screen projection (502c). [0248] SOUTH SOUTH is a vector in an isometric projection environment for tube bending according to an embodiment of the present invention. A negative X-vector component and a positive Y-vector component in a 2D projection corresponding to a touch screen projection (502c). [0249] EAST EAST is a vector in an isometric projection environment for tube bending according to an embodiment of the present invention. A positive X-vector component and a positive Y-vector component in a 2D projection corresponding to a touch screen projection (502c) [0250] WEST WEST is a vector in an isometric projection environment for tube bending according to an embodiment of the present invention. A negative X-vector component and a positive Y-vector component in a 2D projection corresponding to a touch screen projection (502c). [0251] vca Vector component angle, the angle of a vector, where the vector coordinates have been entered by a first operator 501, and where the angle is relative to a horizontal vector parallel with the X-axis pointing in a positive X-direction.