On 01/04/2012 11:59 PM, Jon Elson wrote:
> Sebastian Kuzminsky wrote:
>> On 01/04/2012 08:20 PM, Jon Elson wrote:
>>   
>>> I have a customer wanting to use a jog pendant to change the feed and
>>> spindle overrides, as well as do jogging.  I know how to do the jogging
>>> part,
>>> you feed the scaled MPG to axis.n.jog-counts and enable the desired
>>> axis with axis.n.jog-enable.
>>>
>>> How do you change the feed and spindle overrides, and what is the
>>> appropriate
>>> scaling factor for the MPG?  Is there a sample config that does this without
>>> a pyvcp module?
>>>     
>>
>> It looks like you could use halui.feed-override and 
>> halui.spindle-override, plus some HAL glue to get the jog-wheel's count 
>> into those pins when the user fingers the pendant correctly.
>>
>>   
> Is there an example where this is done from an encoder?  The desired 
> behavior seems to
> be that when you select that function, dialing the jog encoder would 
> move the feed override
> or spindle override slider incrementally from wherever it now is by some 
> amount.
> Definitely do not want it to jump to a position related to the current 
> jog encoder position.
> 
> Jon
> 
> 

How about adding two more small, cheap ($3?), front panel encoders?
They're always there, and they're always on. No switching around.
Here's how Stuart's Cinci 5-axis lists it:

# Spindle Speed Over Ride
net SPOphaseA encoder.2.phase-A ppmc.0.din.32.in
net SPOphaseB encoder.2.phase-B ppmc.0.din.33.in
net SPOcounts encoder.2.counts halui.spindle-override.counts
setp encoder.0.x4-mode false
setp halui.spindle-override.scale .00254

# Feed Rate Over Ride
net FROphaseA encoder.0.phase-A ppmc.0.din.35.in
net FROphaseB encoder.0.phase-B ppmc.0.din.34.in
net FROcounts encoder.0.counts halui.feed-override.counts
setp encoder.0.x4-mode false
setp halui.feed-override.scale .05

It even uses PPMC DC input bits (you're welcome, Jon).

Kim


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to