> Its remembered and done when it can do it..
>
> Think of it this way. A position counter of distance, where the
final output is a stepvalue, if the number of steps increases, a step
goes out, if it decreases, a reverse step is poutout..
>
> double movement = .000001;
> double totaldistance = totaldistance + movement
> totalsteps = (int) (totaldistance / stepsPermm);
>
> With this method, no step can ever be lost due to rounding..
>
> Thanks,
> Art
>
www.artofcnc.ca>
******************************************************************>
> Hi ART, I know we have had this converstion before but I am not
clear
> of the results( old age). WHat happens if Mach cannot make the
> commanded move with 1 step. Say the commanded move is .0001" and
the
> machine resolution is .001" per step. How is the differential
handled?
>
********************************************************************
>
> --- In mach1mach2cnc@yahoogroups.com, Art Fenerty <fenerty@>
wrote:
> >
> > Hi:
> >
> > No, mach wont skip anything. IT uses max number of decimals
> internally, but the DRO';s are set to display only 4. ( They can
be
> told to display 16).
> >
> > The DRO's though, are separate code. They dictate if the right
> number of pulses went out. If, at the end of a program, the axis
is
> wrong, but the DRO is right, then the machine lost pulses that
were
> sent. There can be no questions about it. In this case, where the
Z
> lost position ( it is usually the Z that does this on long 3d
> programs ) the Z aacel shoudl be turned down. Also, you migth
want to
> set a dir prechange of 5 or so in the motor tuning to make sure
its
> not a direction signal issue.
> > As a last report, try sherline mode in the ports & pins, this
> will limit you to 1/2 of the max velocity for any kernal speed,
but
> stretches the pulses out to a minimum of 40us. IF it doesnt lose
> then, the wiring shodul be checked for good coneection, or the
> optocouplers checked to see if they are too slow.
> >
> >
> > Thanks,
> > Art
> >
www.artofcnc.ca