On Thu, 2010-03-11 at 05:43 -0500, Mark Wendt (Contractor) wrote:
> Kirk,
> 
>          Do you have a #0 tool position?  With an incremental counter 
> going from passing the #0 tool, just check the increment, and if it's 
> equal to or larger than the median go one way, and if it's smaller 
> than the median go the other.
> 
> Mark

Thanks Mark. I was going to write a component in C to make the decision
on direction and distance. I was thinking that there might be a C trick
that might be able to do it in a line or two. I guess (X + Y)/2 =
M, ?M>X, ?M<X, could be pretty short.

Seb has a component (modmath) already written so I need to look at both
solutions:
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?ContributedComponents#modmath_Modmath_functions_only_mod_dir_so_far
 
(Short URL) http://alturl.com/b59n 

Here is my tool changer:
http://www.wallacecompany.com/machine_shop/Shizuoka/00029-1a.jpg 
http://www.wallacecompany.com/machine_shop/Shizuoka/00030-1a.jpg 

(Thinking aloud)
The vertical Geneva drive in the first picture has been replaced with a
Bodine DC gearmotor driven by a PWM input amp. The gearmotor will drive
the carousel both ways. The sprocket in the second picture will be
modified to add a 4:1 gear reducer and an absolute encoder that reads 0
to 1023 then wraps between tool 24 and 1.
http://www.wallacecompany.com/machine_shop/EMC2/AEAT-6010/dcp_6888.jpg 
http://www.wallacecompany.com/machine_shop/EMC2/AEAT-6010/ 

I'll need to figure out how to handle both tool number (1 - 24) and
pocket location (0 - 1023). Right now, I need to build all the parts,
then play with the software until it works.

I think I'll calculate the direction then calculate the error between
the current location and the requested location, feed this into limit2
or limit3 to get the velocity PWM signal to send to the amp. Hopefully
this will bring the carousel to the requested tool and constantly
correct any position errors. The limit will keep acceleration and max
speed in check.

-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to