Difference between revisions of "Bend Reduction Editor"

From ATTWiki
Jump to: navigation, search
(Bend Reduction Formula Editor)
(Bend Reduction Formula Editor)
Line 4: Line 4:
 
__TOC__
 
__TOC__
  
=== Bend Reduction Formula Editor ===
+
=== Bend Reduction Editor Screen ===
  
 
Predicting elongation in a tube shape requires complex mathematics that changes per customer application.  Benderlink for SolidWorks now allows operators to program their Bend Reduction formula into the program.  This is the Bend Reduction Function editor:
 
Predicting elongation in a tube shape requires complex mathematics that changes per customer application.  Benderlink for SolidWorks now allows operators to program their Bend Reduction formula into the program.  This is the Bend Reduction Function editor:
Line 13: Line 13:
 
<br>
 
<br>
 
The editor is very powerful because it allows you to enter action Pascal code to define the function that returns the adjusted arc lengths.  This is an example bend reduction program included with Benderlink:
 
The editor is very powerful because it allows you to enter action Pascal code to define the function that returns the adjusted arc lengths.  This is an example bend reduction program included with Benderlink:
 +
 +
 +
=== Sample Program ===
  
 
<font size=1>
 
<font size=1>
Line 30: Line 33:
 
<br>
 
<br>
 
<br>
 
<br>
 +
 +
=== The Function's Result ===
 +
 
The value returned is called the "result".  At the bottom of the code (just before the "end;" line), the  
 
The value returned is called the "result".  At the bottom of the code (just before the "end;" line), the  
 
<pre>result := NewArc;</pre> line of code assigns the value in the NewArc variable to each arc length in Benderlink during conversion.  
 
<pre>result := NewArc;</pre> line of code assigns the value in the NewArc variable to each arc length in Benderlink during conversion.  
 
<br>
 
<br>
 
<br>
 
<br>
 +
 +
=== Accessing Benderlink's Values ===
 +
 
There are three special functions that insert values from the bend data during conversion:
 
There are three special functions that insert values from the bend data during conversion:
  
Line 43: Line 52:
 
<br>
 
<br>
 
<br>
 
<br>
 +
 +
=== Mathematical Function List ===
  
 
These are the available math functions:
 
These are the available math functions:

Revision as of 12:19, 7 March 2008

Blinkswlogo.jpg

Solidworkslogo.png

Contents


Bend Reduction Editor Screen

Predicting elongation in a tube shape requires complex mathematics that changes per customer application. Benderlink for SolidWorks now allows operators to program their Bend Reduction formula into the program. This is the Bend Reduction Function editor:

Blinksw bendreductionfunction menu.jpg

The editor is very powerful because it allows you to enter action Pascal code to define the function that returns the adjusted arc lengths. This is an example bend reduction program included with Benderlink:


Sample Program

var
  BendAllowance: real;
  NewArc: real;
begin
  BendAllowance := 0.64;
  NewArc := ((BendAllowance * blinksw(OD) + (PI/2 * (blinksw(CLR)-0.5 * blinksw(OD) ))) / 90) * blinksw(BENDANGLE);
  //MessageDlg('New Arc Length: ' + floattostr(NewArc), mtInformation, [mbOK], 0);
  result := NewArc;
end;



The Function's Result

The value returned is called the "result". At the bottom of the code (just before the "end;" line), the

result := NewArc;
line of code assigns the value in the NewArc variable to each arc length in Benderlink during conversion.



Accessing Benderlink's Values

There are three special functions that insert values from the bend data during conversion:

  1. blinksw(OD) - Insert the Outer Diameter
  2. blinksw(CLR) - Insert the Centerline Radius
  3. blinksw(BENDANGLE) - Insert the Bend Angle

Each of these are should be formed as a complete word with no spaces between any of the characters.

Mathematical Function List

These are the available math functions:

blinksw(OD)
blinksw(CLR)
blinksw(BENDANGLE)
sqr()
sqrt()
arctan()
cos()
sin()
tan()
abs()
exp()
ln()
log()
int()
frac()
trunc()
round()
arcsin()
arccos()
sign()
not()
PI
ArcCos()
ArcCosh()
ArcCot()
ArcCotH()
ArcCsc()
ArcCscH()
ArcSec()
ArcSecH()
ArcSin()
ArcSinh()
ArcTan2()
ArcTanh()
Cosecant()
Cosh()
Cot()
Cotan()
CotH()
Csc()
CscH()
CycleToDeg()
CycleToGrad()
CycleToRad()
DegToCycle()
DegToGrad()
DegToRad()
GradToCycle()
GradToDeg()
GradToRad()
Hypot()
IntPower()
IsInfinite()
IsNan()
Ldexp()
LnXP1()
Log10()
Log2()
LogN()
Max(
Min()
Power()
RadToCycle()
RadToDeg()
RadToGrad()
RandG()
RandomRange()
Sec()
Secant()
SecH()
Sinh()
Tan()
Tanh()