Professional Documents
Culture Documents
sm
This file is provided for educational purposes as guidance for the use
of the software tool. It is not guarateed to be free from errors or
ommissions. The methods and assumptions may not apply in all cases.
Engineers and designers should seek design and calculation approval
from a relevant organisation.
Coventry University - Nov 2013 (David Sandells)
size 15
Settings for symbol, size and colour of the
sym "+"
plotted jointgs.
col "Red"
Definition of Transforms
0
0
Pt1 Point 1 is origin (don't go anywhere)
0
1
0
Point 2 is the end of the first arm -
0
Pt2 Tr 6 , 4 , 0 translate to the bottom of the arm and
0 then don't go anywhere else.
1 In fact this is the same as a vector (6,-4,0,1)
Lets try using the function to find out where the end point (point 4) will be
for different rotation angles.
9 4 3 8
2 1 6 7
Pt4 0 deg Pt4 90 deg Pt4 180 deg Pt4 270 deg
0 0 0 0
1 1 1 1
y
3
1
Using graphs like this can
0 x help visualise the movement
-1 of the mechanism. However,
you have to add a term for
-2 each point you want to plot.
-3
-4
-5
-6
-7
-8
-2 0 2 4 6 8 10 12
-9
pt Pt4 0 deg
pt Pt4 15 deg
pt Pt4 30 deg
pt Pt4 45 deg
pt Pt4 90 deg
We can use the line and point ploting functions above to generate
data sets that can be plotted on the graph to show the position of
the mechanism at a particular point.
Arm1 lne Pt1 , Pt2 Arm2a lne Pt2 , Pt3 30 deg Arm2b lne Pt3 30 deg , Pt4 30 deg
y
3
0 x
-1
-2
-3
-4
-5
-6
-7
-8
-9 -2 0 2 4 6 8 10 12
pt Pt4 0 deg
pt Pt4 15 deg
pt Pt4 30 deg
pt Pt4 45 deg
pt Pt4 90 deg
Arm1
Arm2a
Arm2b
The "Frame Rate" sub menu controls the animation speed etc.
Arm1 lne Pt1 , Pt2 Arm2a lne Pt2 , Pt3 Arm2b lne Pt3 , Pt4
y
3
0 x
-1
-2
-3
-4
-5
-6
-7
-8
-2 0 2 4 6 8 10 1
9
pt Pt4 t
Arm1
Arm2a t
Arm2b t
0
0
Pt1
0
1
0
0 Now we need to rotate the first coordinate frame
Pt2 R Z Tr 6 , 4 , 0 by angle before we move down the arm.
0
1
3
0
Pt3 , R Z Tr 6 , 4 , 0 R Z
0
1
3
2
Pt4 , R Z Tr 6 , 4 , 0 R Z
0
1
Therefore as we vary we need to find the angle that will keep the
end point on the x axis (i.e. y=0)
We can use the "Solve" function (Part of the special functions plugin)
to achieve this.
We are trying to find the angle that will produce a y=0 coordinate.
Therefore we need to define a function that only provides the y value
(the second element of the vector result).
fn , Pt4 ,
2
8.9836
0.189
Example :- Pt4 10 deg , 5 deg fn 10 deg , 5 deg 0.189
0
1
The 'solve' function will tell us what values make the function output=0
This time we need to animate both the and values so we will generate
a separate animation variable (ani) to control both.
ani 1 ..20
for k ani This means for k equal to every value in ani in turn.
k
List 5 deg 50 deg
k 20
And using the solve method we can find a matching list of values.
Note we have limited the angles through which solve can search (-140,+60)
which should mean that we only get one value of for each value of .
You can see that this is ok in the results shown off the right hand side.
for k ani
Find a value of between
List solve fn List , , , 140 deg , 60 deg
-140 and +60 degs
k k that makes the fn=0
The lines for the graph now need to functions of both and .
y
5
-2
-3
-4
-5
-6
0 2 4 6 8 10 12
We can now plot the the result data sets against one another.
0 x
-32
-64
-96
-1280 8 16 24 32 40 48 56 64
List List
augment ,
deg deg
Here calculate the x position from the angle data and plot that.
for k ani
List x Pt4 List , List For each pair of angles calculate the
k k k x position (element '1' of the vector)
1
y
10
8
Plot of input angle v
6 output position
0 x
0 8 16 24 32 40 48 56 64
List
augment , List x
deg
We can now take this data further. Lets assume that the mechanism is
driven by a motor turning arm1 with 10Nm of torque. If the joints had
zero friction then no energy is lost in them and therefore the output
force must be enought to balance the input energy.
for k ani2
Ergy List List 10 N m
in List of input energies (Torque*Angle)
k k 1 k
for k ani2
Ergy
in
k
Frc
out List List m List of output forces (energy/distance)
k x x
k 1 k
for k ani2
List List Shorter list of input angles for plotting with
k k 1 which takes the average position between the points
List
2 2
k
12 y
0 x
-4 A graph like this could
help with mechanism sizing
-8 and design.
If we want a more accurate
-12
result then we need to add
-16 more calculation points.
-20
-24
-28
-32
-36 0 8 16 24 32 40 48 56 64
List 2 Frc out
augment ,
deg N