Re: A Z80 guy needs help!
Posted by
mariss92705
on 2002-01-20 09:25:22 UTC
Hi,
This is a for a "G-Code in, step/direction out" project that will
take about a year to complete. All motion is vector based and works
on the assumption that position is the running sum of precise
velocities, each applied for a precise period of time (1/1,024 of a
second).
For circular interpolation this would be:
Xv = R sin (theta + delta) - R sin (theta)
Yv = R cos (theta + delta) - R cos (theta)
Replace (theta) with (theta + delta) for next time period.
Delta is the angular distance to be moved in 1 time period and is
dependent on the value for R and the programmed vector velocity.
This requires solving for sin/cos in the shortest time possible to a
24 bit accuracy. I am using a Chebysheff polynomial expansion
coefficients to converge the series in the fewest possible terms. For
this I have a "roll your own" math package in assembly to do it.
It seems I will have to learn C as well (learning makes my head
hurt!).
Mariss
This is a for a "G-Code in, step/direction out" project that will
take about a year to complete. All motion is vector based and works
on the assumption that position is the running sum of precise
velocities, each applied for a precise period of time (1/1,024 of a
second).
For circular interpolation this would be:
Xv = R sin (theta + delta) - R sin (theta)
Yv = R cos (theta + delta) - R cos (theta)
Replace (theta) with (theta + delta) for next time period.
Delta is the angular distance to be moved in 1 time period and is
dependent on the value for R and the programmed vector velocity.
This requires solving for sin/cos in the shortest time possible to a
24 bit accuracy. I am using a Chebysheff polynomial expansion
coefficients to converge the series in the fewest possible terms. For
this I have a "roll your own" math package in assembly to do it.
It seems I will have to learn C as well (learning makes my head
hurt!).
Mariss
--- In CAD_CAM_EDM_DRO@y..., Russell Shaw <rjshaw@i...> wrote:
>
>
> Your samples may be rapid, but the calculations only need to
> be done at a rate that suits the control loop response time.
> If you keep the calculation rate in a separate slower loop
> compared to the parts that keeps track of the instantaneous
> servo movement, slower code and more efficient use of the
> cpu can be had. It depends on what the exact control methods
> are.
>
Discussion Thread
mariss92705
2002-01-19 21:39:25 UTC
A Z80 guy needs help!
mariss92705
2002-01-19 21:44:04 UTC
Re: A Z80 guy needs help!
Russell Shaw
2002-01-19 23:22:05 UTC
Re: [CAD_CAM_EDM_DRO] A Z80 guy needs help!
Carol & Jerry Jankura
2002-01-20 06:28:52 UTC
RE: [CAD_CAM_EDM_DRO] Re: A Z80 guy needs help!
mariss92705
2002-01-20 09:25:22 UTC
Re: A Z80 guy needs help!
ccs@m...
2002-01-20 09:43:19 UTC
Re: [CAD_CAM_EDM_DRO] Re: A Z80 guy needs help!
Bill Vance
2002-01-20 12:37:01 UTC
Re: [CAD_CAM_EDM_DRO] Re: A Z80 guy needs help!
Bill Vance
2002-01-20 12:51:14 UTC
Re: [CAD_CAM_EDM_DRO] Re: A Z80 guy needs help!
ccs@m...
2002-01-20 13:12:42 UTC
Re: [CAD_CAM_EDM_DRO] Re: A Z80 guy needs help!
mariss92705
2002-01-20 13:40:56 UTC
Re: A Z80 guy needs help!
mariss92705
2002-01-20 15:03:39 UTC
Re: A Z80 guy needs help!
Alexandre GuimarĂ£es
2002-01-20 15:28:31 UTC
Re: [CAD_CAM_EDM_DRO] Re: A Z80 guy needs help!
Alan Marconett KM6VV
2002-01-20 15:30:12 UTC
Re: A Z80 guy needs help!
Russell Shaw
2002-01-20 15:36:10 UTC
Re: [CAD_CAM_EDM_DRO] Re: A Z80 guy needs help!
mariss92705
2002-01-20 15:50:10 UTC
Re: A Z80 guy needs help!
Alan Marconett KM6VV
2002-01-21 10:48:42 UTC
Re: A Z80 guy needs help!
Jon Elson
2002-01-21 22:50:21 UTC
Re: [CAD_CAM_EDM_DRO] Re: A Z80 guy needs help!