Hello Guest it is March 28, 2024, 08:46:27 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Anet512

Pages: 1
1
Mach SDK plugin questions and answers. / Movement Plugin and DDA's
« on: August 02, 2011, 08:53:06 AM »
Hello to all.
I have found a problem with the Mach Wiki page "The G100/GREX plugin as a model for device control". There are two lines with different sense in the bottom of this page:

1) DDA1 is the initial velocity to be put out in the move in the first 1ms of movement. Each ms of movement that occurs, DDA2 is added to that velocity AND DDA3 is added to DDA2.

2) The math is simple: at each iteration (1024Hz rate) the
following operations are performed in sequence:
    <current velocity> = dda1
    dda1 += dda2
    dda2 += dda3

I cannot understand, what line is correct?

2
Mach SDK plugin questions and answers. / Movement plugin with DDA
« on: March 20, 2011, 02:47:34 PM »
Hello to all.
I have written a plugin for Mach3, that uses my USB movement controller. I have a problem with a misunderstanding of units, in which DDA values are measured. I assumed, that DDA frequencies are 4467843509235 (yes, about 4 trillion!) times greater than my real frequencies, and everything works fine. But I would like to discover this magic constant and understand how it works. Can anyone helps me?

I have used standard settings in my code:
MainPlanner->ExBufferHi = 350;
MainPlanner->ExTime = 0.001;
for(int x = 0; x < 7; x++)
   MainPlanner->ExternalPulseRates [ x ]=75000;

In window "Motor Tuning and Setup":
Steps per - 2000
Velocity - 120
Acceleration - 4

Mach3 gave me these strange numbers for command G01 X3 Y2 Z1 F2000 (for X axis):
DDA1 = -4294967296
When I change some settings, for example, axis velocity, my magic constant also changes and I don't know why!

Pages: 1