This is my hal file for the spindle
Don't matter what I do the spindle never spins smooth starts and stops as
soon as any p,i,g are added even at .0001 seem to be to much
It will spin at it max rpm if I set s to 10000 or more put and thing less I
surges up and down bad
Hoping someone can see something I can't
The disk on the lathe spindle has a 125 hole disk with 1 hole index A b
pickup I've tried the encoder.scale at 125 and at 500 nether change much

loadrt scale count=1
addf scale.0 servo-thread
setp scale.0.gain 60


setp ppmc.0.pwm.03.bootstrap TRUE
setp ppmc.0.pwm.03.max-dc 0.95
setp ppmc.0.encoder.03.scale 125
setp pid.3.maxoutput 1000
setp pid.3.Pgain 0
setp pid.3.Igain 0
setp pid.3.Dgain 0
setp pid.3.bias 0
setp pid.3.FF0 26

net spindle_enable motion.spindle-on ppmc.0.pwm.03.enable pid.3.enable

net spindle_rev_count ppmc.0.encoder.03.position motion.spindle-revs

net spindle_index_enable ppmc.0.encoder.03.index-enable
motion.spindle-index-enable 
net encoder_raw_velocity ppmc.0.encoder.03.velocity scale.0.in 
net pid_feedback pid.3.feedback motion.spindle-speed-in scale.0.out 
net pid_command pid.3.command motion.spindle-speed-out 
net pid_output pid.3.output ppmc.0.pwm.03.value

-----Original Message-----
From: andy pugh [mailto:[email protected]] 
Sent: Tuesday, July 10, 2012 8:02 AM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] Spindle hooked to dc servo amp

On 10 July 2012 13:41, Kasey Matejcek <[email protected]> wrote:
> I should not say nothing but the spindle turns real aradic and there 
> is no rpm control don't matter were I set the p,I,g

First set Pgain, Igain and Dgain to zero and adjust FF0 until you get the
speed correct at one rpm value.

--
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

----------------------------------------------------------------------------
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat
landscape has changed and how IT managers can respond. Discussions will
include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to