![Galil DMC-4040 User Manual Download Page 121](http://html1.mh-extra.com/html/galil/dmc-4040/dmc-4040_user-manual_3282915121.webp)
(
)
ω
π
=
−
Α
Β
Β
1
2
cos(
)
Χ =
−
AT
B
A
B
2
2
π
π
sin(
)
Note:
ω
is the angular velocity; X is the position; and T is the variable, time, in milliseconds.
In the given example, A=6000 and B=120, the position and velocity profiles are:
X = 50T - (6000/2
π
) sin (2
π
T/120)
Note that the velocity,
ω
, in count/ms, is
ω
= 50 [1 - cos 2
π
T/120]
Figure 6.19: Velocity Profile with Sinusoidal Acceleration
The DMC-40x0 can compute trigonometric functions. However, the argument must be expressed in degrees. Using
our example, the equation for X is written as:
X = 50T - 955 sin 3T
A complete program to generate the contour movement in this example is given below. To generate an array, we
compute the position value at intervals of 8 ms. This is stored at the array POS. Then, the difference between the
positions is computed and is stored in the array DIF. Finally the motors are run in the contour mode.
Contour Mode Example
INSTRUCTION
INTERPRETATION
#POINTS
Program defines X points
DM POS[16]
Allocate memory
DM DIF[15]
C=0
Set initial conditions, C is index
T=0
T is time in ms
#A
V1=50*T
V2=3*T
Argument in degrees
V3=-955*@SIN[V2]+V1
Compute position
V4=@INT[V3]
Integer value of V3
POS[C]=V4
Store in array POS
T=T+8
C=C+1
JP #A,C<16
DMC-40x0 User Manual
Chapter 6 Programming Motion
•
112
Summary of Contents for DMC-4040
Page 54: ...Chapter 3 Connecting Hardware 45 DMC 40x0 User Manual...
Page 55: ...DMC 40x0 User Manual Chapter 3 Connecting Hardware 46...
Page 56: ...Chapter 3 Connecting Hardware 47 DMC 40x0 User Manual...
Page 73: ...Figure 4 1 GalilTools DMC 40x0 User Manual Chapter 4 Software Tools and Communication 64...
Page 185: ...THIS PAGE LEFT BLANK INTENTIONALLY DMC 40x0 User Manual Chapter 7 Application Programming 176...
Page 205: ...THIS PAGE LEFT BLANK INTENTIONALLY DMC 40x0 User Manual Chapter 10 Theory of Operation 196...
Page 222: ...Step 2 Remove ICM s Appendices 213 DMC 40x0 User Manual...
Page 232: ...DMC 4080 Steps 4 and 5 Step 4 Replace ICM s Appendices 223 DMC 40x0 User Manual...