----- Original Message ----- 
From: "Alex Joni" <[EMAIL PROTECTED]>
To: "Enhanced Machine Controller (EMC)" 
<[email protected]>
Sent: Monday, June 11, 2007 4:37 PM
Subject: Re: [Emc-users] Lathe Spindle, Mesa Help!

>> I would like to
>> use the 3rd or 4th Mesa encoder inputs for the spindle but I'm not 
>> sure
>> if that's compatible with what EMC needs for lathe threading.
>>
> Sure it is. That's why we have the HAL.
> You can basicly use any encoder counter and connect that to the lathe
> threading input. You need an encoder with an index slot though, to 
> sync
> passes.
> If you don't have one, you can probably trick it by generating a fake 
> index
> pulse once every n-counts (where n is a full revolution). But this 
> isn't the
> most clean way to do it.
>
>
> Regards,
> Alex

So if I have this figured right, the following is what I need to add to 
my m5i20 hal file for the spindle encoder on the 4th axis.

newsig spindle-index-enable bit
linkps motion.spindle-index-enable <=> spindle-index-enable
linksp spindle-index-enable <=> m5i20.0.enc-3-index

# *** I didn't see an index-enable for the m5i20, is the above line 
correct?

newsig spindle-pos float
linkps m5i20.0.enc-3-position => spindle-pos
linksp spindle-pos => motion.spindle-revs

setp m5i20.0.enc-3-scale <counts per rev>

Is there also changes I need to make to the .ini file for the spindle 
encoder or lathe threading?

Thanks!
Roger Neal


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to