CAD CAM EDM DRO - Yahoo Group Archive

Re: [CAD_CAM_EDM_DRO] Re: EMC2 Screw Cutting Problem

on 2008-05-22 11:15:08 UTC
Hmmm. I'm not sure why that didn't work.

There are a couple of things you can do to troubleshoot this.
First, from the Axis "Machine" menu, select "halmeter". In the
selection dialog that pops up, select the "Signals" tab, then select the
"spindle-position" signal and click "close. If you start the spindle
moving slowly, you should see the number creep upwards as the spindle
turns. It should go up by 1 for every full revolution of the spindle.
You should be able to turn the spindle by hand and see this as well, so
you don't even need to turn the machine on or run any G-code to see
this. Turn the spindle more than one revolution, and make sure the
count continues to increase. If it counts to 1 then resets to 0, exit
from EMC2, re-run stepconf, and invert (or un-invert) the pin that's
selected as "Spindle Index".

If you don't see the spindle-position change at all, then there is a
mistake in the setup of the encoder counter. It's possible that the
wrong parallel port pins are selected, or that you're loading the wrong
configuration when you start EMC2 (we've all done that :) ).

Load the demo file "threading.ngc" and run it (if you have stepper
motors, you can leave the motor drives off - you only need the spindle
spinning and have its feedback for this test). You can load two copies
of halmeter and look at spindle-position and spindle-index-enable. The
position should continually increase in the early moves, and
spindle-index-enable will be false. When each threading pass starts,
the spindle-index-enable will be true until the spindle index is found,
when it will go false, the spindle-position will go to 0, and the
threading pass will begin.

Let me know what you find.
- Steve

mart_wid wrote:

>Steve.
>I've created a new configuration with the wizard and added the 'setp
>encoder.0.position-scale 48' instruction to the Custom HAL, as per
>your reply (copy kept of previous config). Doing this seems to put me
>back at the "system waiting forever" stage when running a threading
>gcode file. Do you think there could be something else amiss with the
>wizard, such as selecting the wrong kind of spindle encoder
>instructions for my particular setup?
>Sorry to be a pain with this, but I do appreciate your help. Thanks,
>Martin.
>
>
>--- In CAD_CAM_EDM_DRO@yahoogroups.com, Stephen Wille Padnos
><spadnos@...> wrote:
>
>
>>Ah - thanks for the compliment and the bug report :)
>>
>>I just fixed the bug in stepconf, so the next update should take
>>
>>
>care of
>
>
>>it. For now, all you should need to do is set the proper pins on
>>
>>
>the
>
>
>>parallel port setup page - "Spindle Index" and "Spindle Phase A".
>>
>>
>Check
>
>
>>the box that says "Include custom HAL configuration" (this is
>>
>>
>checked by
>
>
>>default).
>>
>>In the custom hal file (named custom.hal, in the directory that
>>
>>
>stepconf
>
>
>>created for your config), you should only need to have one line:
>>setp encoder.0.position-scale 48
>>
>>That will override the setting that stepconf created.
>>
>>The problem was that stepconf was (a) multiplying by 2 (with the
>>assumption that the encoder module was counting both edges) and (b)
>>using the reciprocal of that :) So every count made the motion
>>controller think that the spindle had done 96 turns :) The bug
>>
>>
>didn't
>
>
>>show up for quadrature encoder systems, so it took your report to
>>
>>
>help
>
>
>>us find the problem. Thanks again.
>>
>>Enjoy!
>>- Steve
>>
>>
>
>
>
>------------------------------------
>
>Addresses:
>FAQ: http://www.ktmarketing.com/faq.html
>FILES: http://groups.yahoo.com/group/CAD_CAM_EDM_DRO/files/
>Post Messages: CAD_CAM_EDM_DRO@yahoogroups.com
>
>Subscribe: CAD_CAM_EDM_DRO-subscribe@yahoogroups.com
>Unsubscribe: CAD_CAM_EDM_DRO-unsubscribe@yahoogroups.com
>List owner: CAD_CAM_EDM_DRO-owner@yahoogroups.com, wanliker@..., timg@...
>Moderator: pentam@... indigo_red@... davemucha@... [Moderators]
>URL to this group: http://groups.yahoo.com/group/CAD_CAM_EDM_DRO
>
>OFF Topic POSTS: General Machining
>If you wish to post on unlimited OT subjects goto: aol://5863:126/rec.crafts.metalworking or go thru Google.com to reach it if you have trouble.
>http://www.metalworking.com/news_servers.html
>
>http://groups.yahoo.com/group/jobshophomeshop I consider this to be a sister site to the CCED group, as many of the same members are there, for OT subjects, that are not allowed on the CCED list.
>
>NOTICE: ALL POSTINGS TO THIS GROUP BECOME PUBLIC DOMAIN BY POSTING THEM. DON'T POST IF YOU CAN NOT ACCEPT THIS.....NO EXCEPTIONS........
>bill
>List Mom
>List Owner
>
>Yahoo! Groups Links
>
>
>
>
>

Discussion Thread

mart_wid 2008-05-21 06:13:36 UTC EMC2 Screw Cutting Problem Stephen Wille Padnos 2008-05-21 07:13:29 UTC Re: [CAD_CAM_EDM_DRO] EMC2 Screw Cutting Problem mart_wid 2008-05-21 14:42:33 UTC Re: EMC2 Screw Cutting Problem Stephen Wille Padnos 2008-05-21 15:40:37 UTC Re: [CAD_CAM_EDM_DRO] Re: EMC2 Screw Cutting Problem mart_wid 2008-05-22 03:34:20 UTC Re: EMC2 Screw Cutting Problem Stephen Wille Padnos 2008-05-22 11:15:08 UTC Re: [CAD_CAM_EDM_DRO] Re: EMC2 Screw Cutting Problem mart_wid 2008-05-22 13:32:53 UTC Re: EMC2 Screw Cutting Problem Stephen Wille Padnos 2008-05-22 13:40:15 UTC Re: [CAD_CAM_EDM_DRO] Re: EMC2 Screw Cutting Problem mart_wid 2008-05-22 14:49:33 UTC Re: EMC2 Screw Cutting Problem Stephen Wille Padnos 2008-05-22 15:12:52 UTC Re: [CAD_CAM_EDM_DRO] Re: EMC2 Screw Cutting Problem mart_wid 2008-05-23 10:31:58 UTC Re: EMC2 Screw Cutting Problem mart_wid 2008-05-23 10:59:54 UTC Re: EMC2 Screw Cutting Problem Stephen Wille Padnos 2008-05-23 12:27:36 UTC Re: [CAD_CAM_EDM_DRO] Re: EMC2 Screw Cutting Problem mart_wid 2008-05-23 14:25:17 UTC Re: EMC2 Screw Cutting Problem Stephen Wille Padnos 2008-05-24 07:47:21 UTC Re: [CAD_CAM_EDM_DRO] Re: EMC2 Screw Cutting Problem mart_wid 2008-05-24 10:24:43 UTC Re: EMC2 Screw Cutting Problem